- Timestamp:
- May 21, 2021 12:50:09 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp
r89221 r89222 79 79 static IConsole *gConsole = NULL; 80 80 static NativeEventQueue *gEventQ = NULL; 81 82 /* keep this handy for messages */ 83 static com::Utf8Str g_strVMName; 84 static com::Utf8Str g_strVMUUID; 81 85 82 86 /* flag whether frontend should terminate */ … … 888 892 889 893 /* tell the user what we are doing */ 890 ::ShutdownBlockReasonCreate(hwnd, L"Waiting for VM to terminate"); 894 ::ShutdownBlockReasonCreate(hwnd, 895 com::BstrFmt("%s saving state", 896 g_strVMName.c_str()).raw()); 891 897 892 898 /* tell the VM to save state/power off */ … … 1377 1383 } 1378 1384 1379 Bstr id;1380 rc = m->COMGETTER(Id)( id.asOutParam());1385 Bstr bstrVMId; 1386 rc = m->COMGETTER(Id)(bstrVMId.asOutParam()); 1381 1387 AssertComRC(rc); 1382 1388 if (FAILED(rc)) 1383 1389 break; 1390 g_strVMUUID = bstrVMId; 1391 1392 Bstr bstrVMName; 1393 rc = m->COMGETTER(Name)(bstrVMName.asOutParam()); 1394 AssertComRC(rc); 1395 if (FAILED(rc)) 1396 break; 1397 g_strVMName = bstrVMName; 1384 1398 1385 1399 Log(("VBoxHeadless: Opening a session with machine (id={%s})...\n", 1386 Utf8Str(id).c_str()));1400 g_strVMUUID.c_str())); 1387 1401 1388 1402 // set session name
Note:
See TracChangeset
for help on using the changeset viewer.