loader: Fix Windows build for alloc stuff
authorJon Ashburn <jon@lunarg.com>
Fri, 28 Aug 2015 21:58:46 +0000 (14:58 -0700)
committerJon Ashburn <jon@lunarg.com>
Fri, 4 Sep 2015 21:46:31 +0000 (15:46 -0600)
loader/debug_report.c
loader/dirent_on_windows.c
loader/loader.c

index 3342a19..c7c1d9a 100644 (file)
@@ -35,6 +35,7 @@
 #include <signal.h>
 #else
 #endif
+#include "vk_loader_platform.h"
 #include "debug_report.h"
 #include "vk_layer.h"
 
index 5efec82..f873c12 100644 (file)
@@ -7,13 +7,14 @@
     Rights:  See end of file.
 
 */
-
 #include <dirent_on_windows.h>
 #include <errno.h>
 #include <io.h> /* _findfirst and _findnext set errno iff they return -1 */
 #include <stdlib.h>
 #include <string.h>
+#include "vk_loader_platform.h"
 #include "loader.h"
+
 #ifdef __cplusplus
 extern "C"
 {
index 13e3d02..daf428a 100644 (file)
@@ -1659,7 +1659,7 @@ static void loader_get_manifest_files(const struct loader_instance *inst,
         }
         strcpy(loc, location);
 #if defined (_WIN32)
-        loc = loader_get_registry_files(loc);
+        loc = loader_get_registry_files(inst, loc);
         if (loc == NULL) {
             loader_log(VK_DBG_REPORT_ERROR_BIT, 0, "Registry lookup failed can't get manifest files");
             return;