emulator: fix compile errors on Windows. 32/23132/1
authorKitae Kim <kt920.kim@samsung.com>
Wed, 18 Jun 2014 08:43:58 +0000 (17:43 +0900)
committerKitae Kim <kt920.kim@samsung.com>
Wed, 18 Jun 2014 08:43:58 +0000 (17:43 +0900)
Change-Id: I3ad1365b837c5e22865c935ff82a5d0671565815
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
tizen/src/emulator.c
tizen/src/osutil-win32.c

index 4e43cac..0109815 100644 (file)
 #include <SDL.h>
 #endif
 
+#ifdef CONFIG_WIN32
+#include <libgen.h>
+#endif
+
 #ifdef CONFIG_DARWIN
 #include "ns_event.h"
 int thread_running = 1; /* Check if we need exit main */
index 81edc39..457279b 100644 (file)
@@ -137,7 +137,7 @@ void remove_vm_lock_os(void)
     if (g_pBuf != NULL) {
         UnmapViewOfFile(g_pBuf);
     }
-    if(hMapFile != NULL) {
+    if (g_hMapFile != NULL) {
         CloseHandle(g_hMapFile);
     }
 }