diff options
author | Jason Perkins <starkos@industriousone.com> | 2012-01-05 00:01:22 +0400 |
---|---|---|
committer | Jason Perkins <starkos@industriousone.com> | 2012-01-05 00:01:22 +0400 |
commit | dd235093eb990ecc12629ead181a481636ee4bde (patch) | |
tree | fe66820ae34ff8b5ab94320915a1b564888ca187 /src/host | |
parent | 6d23978d461ddec130681807e3c591c13d8c3a19 (diff) |
Removed dynamic loading of Ole32 on Windows (see patch #3456407)
Diffstat (limited to 'src/host')
-rw-r--r-- | src/host/os_uuid.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/host/os_uuid.c b/src/host/os_uuid.c index c252179..b06b29b 100644 --- a/src/host/os_uuid.c +++ b/src/host/os_uuid.c @@ -5,7 +5,7 @@ */ #include "premake.h" - +#include <Objbase.h> int os_uuid(lua_State* L) { @@ -13,15 +13,7 @@ int os_uuid(lua_State* L) char uuid[38]; #if PLATFORM_WINDOWS - - static int (__stdcall *CoCreateGuid)(char*) = NULL; - if (CoCreateGuid == NULL) - { - HMODULE hOleDll = LoadLibrary("OLE32.DLL"); - CoCreateGuid = (int(__stdcall*)(char*))GetProcAddress(hOleDll, "CoCreateGuid"); - } CoCreateGuid((char*)bytes); - #else int result; |