emulator: fix compile errors on Windows.
[sdk/emulator/qemu.git] / tizen / src / osutil-win32.c
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);
     }
 }