Changeset 25013 in vbox for trunk/src/VBox/Frontends/VBoxSDL
- Timestamp:
- Nov 26, 2009 3:22:46 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 55325
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp
r24493 r25013 858 858 HRESULT rc; 859 859 int vrc; 860 Guid uuid ;860 Guid uuidVM; 861 861 char *vmName = NULL; 862 862 DeviceType_T bootDevice = DeviceType_Null; … … 1045 1045 } 1046 1046 // first check if a UUID was supplied 1047 if (RT_FAILURE(RTUuidFromStr(uuid .ptr(), argv[curArg])))1047 if (RT_FAILURE(RTUuidFromStr(uuidVM.ptr(), argv[curArg]))) 1048 1048 { 1049 1049 LogFlow(("invalid UUID format, assuming it's a VM name\n")); … … 1456 1456 * Do we have a name but no UUID? 1457 1457 */ 1458 if (vmName && uuid .isEmpty())1458 if (vmName && uuidVM.isEmpty()) 1459 1459 { 1460 1460 ComPtr<IMachine> aMachine; … … 1465 1465 Bstr id; 1466 1466 aMachine->COMGETTER(Id)(id.asOutParam()); 1467 uuid = Guid(id);1467 uuidVM = Guid(id); 1468 1468 } 1469 1469 else … … 1473 1473 } 1474 1474 } 1475 else if (uuid .isEmpty())1475 else if (uuidVM.isEmpty()) 1476 1476 { 1477 1477 RTPrintf("Error: no machine specified!\n"); … … 1483 1483 AssertReleaseRC(vrc); 1484 1484 1485 rc = virtualBox->OpenSession(session, uuid .toUtf16());1485 rc = virtualBox->OpenSession(session, uuidVM.toUtf16()); 1486 1486 if (FAILED(rc)) 1487 1487 { … … 1544 1544 * Go and attach it! 1545 1545 */ 1546 Bstr uuid ;1546 Bstr uuidHD; 1547 1547 Bstr storageCtlName; 1548 hardDisk->COMGETTER(Id)(uuid .asOutParam());1548 hardDisk->COMGETTER(Id)(uuidHD.asOutParam()); 1549 1549 1550 1550 /* get the first IDE controller to attach the harddisk to … … 1581 1581 } 1582 1582 1583 gMachine->AttachDevice(storageCtlName, 0, 0, DeviceType_HardDisk, uuid );1583 gMachine->AttachDevice(storageCtlName, 0, 0, DeviceType_HardDisk, uuidHD); 1584 1584 /// @todo why is this attachment saved? 1585 1585 } … … 2406 2406 { 2407 2407 /* potential host key combination, try execute it */ 2408 int rc = HandleHostKey(&event.key);2409 if ( rc == VINF_SUCCESS)2408 int irc = HandleHostKey(&event.key); 2409 if (irc == VINF_SUCCESS) 2410 2410 { 2411 2411 enmHKeyState = HKEYSTATE_USED; 2412 2412 break; 2413 2413 } 2414 if (RT_SUCCESS( rc))2414 if (RT_SUCCESS(irc)) 2415 2415 goto leave; 2416 2416 } … … 2448 2448 if (event.type == SDL_KEYDOWN) 2449 2449 { 2450 int rc = HandleHostKey(&event.key);2451 if (RT_SUCCESS( rc) &&rc != VINF_SUCCESS)2450 int irc = HandleHostKey(&event.key); 2451 if (RT_SUCCESS(irc) && irc != VINF_SUCCESS) 2452 2452 goto leave; 2453 2453 }
Note:
See TracChangeset
for help on using the changeset viewer.