Commits

Vinay Sajip committed a6c53b8

Tidied up whitespace and casting.

Comments (0)

Files changed (1)

CLILauncher/launcher.c

     // See http://bugs.python.org/issue17290 and 
     // https://bitbucket.org/vinay.sajip/pylauncher/issue/20/busy-cursor-for-a-long-time-when-running
     MSG msg;
+
     PostMessage(0, 0, 0, 0);
-    GetMessage(&msg, 0, 0, 0);    
+    GetMessage(&msg, 0, 0, 0);
 #endif
-    
+
     debug(L"run_child: about to run '%s'\n", cmdline);
     job = CreateJobObject(NULL, NULL);
     ok = QueryInformationJobObject(job, JobObjectExtendedLimitInformation,
             if (!valid)
                 debug(L"GetFileVersionInfo failed: %X\n", GetLastError());
             else {
-                valid = VerQueryValueW(version_data, L"\\", &file_info,
-                                       &block_size);
+                valid = VerQueryValueW(version_data, L"\\",
+                                       (LPVOID *) &file_info, &block_size);
                 if (!valid)
                     debug(L"VerQueryValue failed: %X\n", GetLastError());
                 else {
         }
 #if defined(PYTHON_ARGS)
         else {
-            for (index = 1; index < argc; index++)
+            for (index = 1; index < argc; ++index) {
                 if (*argv[index] != L'-')
                     break;
+            }
             if (index < argc) {
                 read_commands();
                 maybe_handle_shebang(&argv[index], command);
 }
 
 #endif
-