[Title] add '"' character to the java path
authorjihye kim <jihye1128.kim@samsung.com>
Tue, 21 Aug 2012 04:19:39 +0000 (13:19 +0900)
committerjihye kim <jihye1128.kim@samsung.com>
Tue, 21 Aug 2012 04:19:39 +0000 (13:19 +0900)
[Type] work
[Module] emulator (qemu)
[Priority] major
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

oslib-win32.c
tizen/src/skin/maruskin_client.c

index 9a0f099f8423016cdd3fd19048c315505e961a2c..1ad6b8a1fd0be248389ca12900f5ee2c142fbf49 100644 (file)
@@ -90,8 +90,9 @@ int get_java_path_temp(char** java_path)
        RegQueryValueEx(hKeyNew, "JavaHome", NULL, NULL, (LPBYTE)strJavaHome, &dwBufLen);
        RegCloseKey(hKey);
        if (strJavaHome[0] != '\0') {
-               strcpy(*java_path, strJavaHome);
-               strcat(*java_path, "\\bin\\java");
+        sprintf(*java_path, "\"%s\\bin\\java\"", strJavaHome);
+               //strcpy(*java_path, strJavaHome);
+               //strcat(*java_path, "\\bin\\java");
     } else {
                return 0;
        }
index ef47d1903372f3df93dc30f4a8cbc037892f9c4d..2af4546058020a76ed02e11fc2453c0ab46308f8 100644 (file)
@@ -121,9 +121,9 @@ static void* run_skin_client(void* arg)
     INFO( "command for swt : %s\n", cmd );
 
 #ifdef CONFIG_WIN32
-       // for 64bit windows
-       free(JAVA_EXEFILE_PATH);
-       JAVA_EXEFILE_PATH=0;
+    // for 64bit windows
+    free(JAVA_EXEFILE_PATH);
+    JAVA_EXEFILE_PATH=0;
 
     //WinExec( cmd, SW_SHOW );
     {
@@ -352,8 +352,9 @@ int get_java_path(char** java_path)
        RegQueryValueEx(hKeyNew, "JavaHome", NULL, NULL, (LPBYTE)strJavaHome, &dwBufLen);
        RegCloseKey(hKey);
        if (strJavaHome[0] != '\0') {
-               strcpy(*java_path, strJavaHome);
-               strcat(*java_path, "\\bin\\java");
+        sprintf(*java_path, "\"%s\\bin\\java\"", strJavaHome);
+        //strcpy(*java_path, strJavaHome);
+        //strcat(*java_path, "\\bin\\java");
     } else {
                return 0;
        }