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
path: root/src/host
diff options
context:
space:
mode:
authorJason Perkins <starkos@industriousone.com>2012-01-05 00:01:22 +0400
committerJason Perkins <starkos@industriousone.com>2012-01-05 00:01:22 +0400
commitdd235093eb990ecc12629ead181a481636ee4bde (patch)
treefe66820ae34ff8b5ab94320915a1b564888ca187 /src/host
parent6d23978d461ddec130681807e3c591c13d8c3a19 (diff)
Removed dynamic loading of Ole32 on Windows (see patch #3456407)
Diffstat (limited to 'src/host')
-rw-r--r--src/host/os_uuid.c10
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;