Skip to content
Snippets Groups Projects
Commit 05dcd69a authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

On Win64, COM_HANDLE is bigger than a long.

Use strtoll() to parse number (except when _BORLANDC_ of course)
parent 60198869
No related branches found
No related tags found
No related merge requests found
Pipeline #5902 canceled
......@@ -1562,7 +1562,11 @@ service_loop(int argc, char** argv)
port = (ushort)strtol(argv[++argn], NULL, 0);
else if(stricmp(arg,"live")==0) {
if(argc > argn+1 &&
#ifdef _BORLANDC_
(com_handle = (COM_HANDLE)strtol(argv[argn+1], NULL, 0)) != 0) {
#else
(com_handle = (COM_HANDLE)strtoll(argv[argn+1], NULL, 0)) != 0) {
#endif
argn++;
com_handle_passed=TRUE;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment