Fix compilation warnings.
authorSeokYeon Hwang <syeon.hwang@samsung.com>
Mon, 15 Jul 2013 05:34:47 +0000 (14:34 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Mon, 15 Jul 2013 05:34:47 +0000 (14:34 +0900)
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
util/oslib-win32.c

index ee481dbf789c4bf7494beec2e8ad7808a4e0d41b..1be8208c5d2781808f9b331a6ea409b18ca07921 100644 (file)
@@ -38,7 +38,7 @@
 typedef BOOL (WINAPI *LPFN_ISWOW64PROCESS) (HANDLE, PBOOL);
 LPFN_ISWOW64PROCESS fnIsWow64Process;
 
-int is_wow64_temp(void)
+static int is_wow64_temp(void)
 {
     int result = 0;
 
@@ -59,7 +59,7 @@ int is_wow64_temp(void)
     return result;
 }
 
-int get_java_path_temp(char** java_path)
+static int get_java_path_temp(char** java_path)
 {
     HKEY hKeyNew;
     HKEY hKey;
@@ -131,6 +131,10 @@ void *qemu_oom_check(void *ptr)
             JAVA_SIMPLEMODE_OPTION, _msg);
         int ret = WinExec(cmd, SW_SHOW);
 
+        if (ret < 32) {
+            // TODO: error handling...
+        }
+
         /* for 64bit windows */
         free(JAVA_EXEFILE_PATH);
         JAVA_EXEFILE_PATH=0;