Changeset 23643 in vbox for trunk/src/VBox/Frontends/VBoxSDL
- Timestamp:
- Oct 9, 2009 12:23:32 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 53341
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp
r23249 r23643 509 509 510 510 STDMETHOD(OnVRDPServerChange)() 511 { 512 return S_OK; 513 } 514 515 STDMETHOD(OnRemoteDisplayInfoChange)() 511 516 { 512 517 return S_OK; … … 865 870 char *fdaFile = NULL; 866 871 #ifdef VBOX_WITH_VRDP 867 int portVRDP = ~0;872 char *portVRDP = NULL; 868 873 #endif 869 874 bool fDiscardState = false; … … 1273 1278 { 1274 1279 // start with the standard VRDP port 1275 portVRDP = 0;1280 portVRDP = "0"; 1276 1281 1277 1282 // is there another argument 1278 1283 if (argc > (curArg + 1)) 1279 1284 { 1280 // check if the next argument is a number 1281 int port = atoi(argv[curArg + 1]); 1282 if (port > 0) 1283 { 1284 curArg++; 1285 portVRDP = port; 1286 LogFlow(("Using non standard VRDP port %d\n", portVRDP)); 1287 } 1285 curArg++; 1286 portVRDP = argv[curArg]; 1287 LogFlow(("Using non standard VRDP port %s\n", portVRDP)); 1288 1288 } 1289 1289 } … … 1838 1838 1839 1839 #ifdef VBOX_WITH_VRDP 1840 if (portVRDP != ~0)1840 if (portVRDP) 1841 1841 { 1842 1842 rc = gMachine->COMGETTER(VRDPServer)(gVrdpServer.asOutParam()); … … 1847 1847 if (portVRDP > 0) 1848 1848 { 1849 rc = gVrdpServer->COMSETTER(Port)(portVRDP); 1849 Bstr bstr = portVRDP; 1850 rc = gVrdpServer->COMSETTER(Ports)(bstr); 1850 1851 if (rc != S_OK) 1851 1852 {
Note:
See TracChangeset
for help on using the changeset viewer.