@@ -282,9 +282,9 @@ WinMain (HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmd, int nShow)
282282 strcat (outgoing_cmd_line, " " );
283283
284284 // for 2.0a2, add the 'lib' folder to the java.library.path
285- strcat (outgoing_cmd_line, " -Djava.library.path=" );
285+ strcat (outgoing_cmd_line, " \" -Djava.library.path=" );
286286 strcat (outgoing_cmd_line, exe_directory);
287- strcat (outgoing_cmd_line, " \\ lib " );
287+ strcat (outgoing_cmd_line, " \\ lib\" " );
288288
289289 // add the name of the class to execute and a space before the next arg
290290 strcat (outgoing_cmd_line, java_main_class);
@@ -310,6 +310,8 @@ WinMain (HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmd, int nShow)
310310
311311 SHELLEXECUTEINFO ShExecInfo;
312312
313+ // MessageBox(NULL, executable, outgoing_cmd_line, MB_OK);
314+
313315 // set up the execution info
314316 ShExecInfo.cbSize = sizeof (SHELLEXECUTEINFO);
315317 ShExecInfo.fMask = 0 ;
@@ -328,7 +330,6 @@ WinMain (HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmd, int nShow)
328330 }
329331
330332 if (reinterpret_cast <int >(ShExecInfo.hInstApp ) <= 32 ) {
331-
332333 // some type of error occurred
333334 switch (reinterpret_cast <int >(ShExecInfo.hInstApp )) {
334335 case ERROR_FILE_NOT_FOUND:
0 commit comments