Skip to content

Commit

Permalink
Use atoll for SQ_HOST64 to cover win32 LLP64 case
Browse files Browse the repository at this point in the history
Also revert to original atoi in SQ_HOST32 case.
  • Loading branch information
nicolas-cellier-aka-nice committed Jul 8, 2016
1 parent 1d0fbd7 commit 2245967
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions platforms/win32/vm/sqWin32Main.c
Expand Up @@ -1829,10 +1829,18 @@ parseVMArgument(int argc, char *argv[])

/* NOTE: the following flags are "undocumented" */
else if (argc > 1 && !strcmp(argv[0], "-browserWindow")) {
browserWindow = (HWND)atol(argv[1]);
#if SQ_HOST32
browserWindow = (HWND)atoi(argv[1]);
#else
browserWindow = (HWND)atoll(argv[1]);
#endif
return 2; }
else if (!strncmp(argv[0], "-browserWindow:", 15)) {
browserWindow = (HWND)atol(argv[0]+15);
#if SQ_HOST32
browserWindow = (HWND)atoi(argv[0]+15);
#else
browserWindow = (HWND)atoll(argv[0]+15);
#endif
return 1; }

/* service support on 95 */
Expand Down

0 comments on commit 2245967

Please sign in to comment.