Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/host/os_uuid.c')
-rw-r--r--src/host/os_uuid.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/host/os_uuid.c b/src/host/os_uuid.c
index 28be4e8..e3bee6b 100644
--- a/src/host/os_uuid.c
+++ b/src/host/os_uuid.c
@@ -15,7 +15,9 @@ int os_uuid(lua_State* L)
char uuid[38];
#if PLATFORM_WINDOWS
- CoCreateGuid((GUID*)bytes);
+ HRESULT hr = CoCreateGuid((GUID*)bytes);
+ if (FAILED(hr))
+ return 0;
#else
int result;