- Timestamp:
- Nov 14, 2014 4:25:32 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo-win.cpp
r53332 r53333 132 132 */ 133 133 static int VBoxServiceVMInfoWinProcessesGetModuleNameA(PVBOXSERVICEVMINFOPROC const pProc, 134 char **ppszName)134 PRTUTF16 *ppszName) 135 135 { 136 136 AssertPtrReturn(pProc, VERR_INVALID_POINTER); … … 198 198 else 199 199 { 200 char *pszName; 201 rc = RTUtf16ToUtf8(wszName, &pszName); 202 if (RT_SUCCESS(rc)) 200 PRTUTF16 pszName = RTUtf16Dup(wszName); 201 if (pszName) 203 202 *ppszName = pszName; 203 else 204 rc = VERR_NO_MEMORY; 204 205 } 205 206 … … 595 596 if (g_cVerbosity) 596 597 { 597 char *pszName;598 PRTUTF16 pszName; 598 599 int rc2 = VBoxServiceVMInfoWinProcessesGetModuleNameA(&paProcs[i], &pszName); 599 VBoxServiceVerbose(4, "Session %RU32: PID=%ld (fInt=%RTbool): % s\n",600 VBoxServiceVerbose(4, "Session %RU32: PID=%ld (fInt=%RTbool): %ls\n", 600 601 pSessionData->Session, paProcs[i].id, paProcs[i].fInteractive, 601 RT_SUCCESS(rc2) ? pszName : "<Unknown>");602 RT_SUCCESS(rc2) ? pszName : L"<Unknown>"); 602 603 if (RT_SUCCESS(rc2)) 603 RT StrFree(pszName);604 RTUtf16Free(pszName); 604 605 } 605 606
Note:
See TracChangeset
for help on using the changeset viewer.