CVS: seamlessrdp/ServerExe main.c,1.14,1.15
Pierre Ossman <[email protected]>
| Newsgroups | gmane.network.rdesktop.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/rdesktop/seamlessrdp/ServerExe In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4959/ServerExe Modified Files: main.c Log Message: Use strtoul on window id:s to be able to handle the full range. Index: main.c =================================================================== RCS file: /cvsroot/rdesktop/seamlessrdp/ServerExe/main.c,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** main.c 10 Mar 2006 16:40:55 -0000 1.14 --- main.c 15 Mar 2006 12:11:02 -0000 1.15 *************** *** 182,192 **** do_sync(); else if (strcmp(tok1, "STATE") == 0) ! do_state((HWND) strtol(tok2, NULL, 0), strtol(tok3, NULL, 0)); else if (strcmp(tok1, "POSITION") == 0) ! do_position((HWND) strtol(tok2, NULL, 0), strtol(tok3, NULL, 0), strtol(tok4, NULL, 0), strtol(tok5, NULL, 0), strtol(tok6, NULL, 0)); else if (strcmp(tok1, "ZCHANGE") == 0) ! do_zchange((HWND) strtol(tok2, NULL, 0), (HWND) strtol(tok3, NULL, 0)); } } --- 182,192 ---- do_sync(); else if (strcmp(tok1, "STATE") == 0) ! do_state((HWND) strtoul(tok2, NULL, 0), strtol(tok3, NULL, 0)); else if (strcmp(tok1, "POSITION") == 0) ! do_position((HWND) strtoul(tok2, NULL, 0), strtol(tok3, NULL, 0), strtol(tok4, NULL, 0), strtol(tok5, NULL, 0), strtol(tok6, NULL, 0)); else if (strcmp(tok1, "ZCHANGE") == 0) ! do_zchange((HWND) strtoul(tok2, NULL, 0), (HWND) strtoul(tok3, NULL, 0)); } } ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642