Changeset 76098 in vbox for trunk/src/VBox/Additions/WINNT
- Timestamp:
- Dec 10, 2018 9:07:39 AM (6 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/VBoxTray
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxSeamless.cpp
r69500 r76098 5 5 6 6 /* 7 * Copyright (C) 2006-201 7Oracle Corporation7 * Copyright (C) 2006-2018 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 99 99 } 100 100 else 101 { 102 if (rc == VERR_FILE_NOT_FOUND) 103 VBoxTrayShowError("VBoxHook.dll not found"); 104 101 105 LogFlowFunc(("Unable to load %s, rc=%Rrc\n", VBOXHOOK_DLL_NAME, rc)); 106 } 102 107 } 103 108 -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxTray.cpp
r75407 r76098 5 5 6 6 /* 7 * Copyright (C) 2006-201 7Oracle Corporation7 * Copyright (C) 2006-2018 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 585 585 } 586 586 else 587 MessageBoxA(GetDesktopWindow(), ErrInfo.szMsg, "VBoxTray - Logging Error", MB_OK | MB_ICONERROR);587 VBoxTrayShowError(ErrInfo.szMsg); 588 588 589 589 return rc; … … 593 593 { 594 594 RTLogDestroy(RTLogRelSetDefaultInstance(NULL)); 595 } 596 597 /** 598 * Displays an error message. 599 * 600 * @returns RTEXITCODE_FAILURE. 601 * @param pszFormat The message text. 602 * @param ... Format arguments. 603 */ 604 RTEXITCODE VBoxTrayShowError(const char *pszFormat, ...) 605 { 606 va_list args; 607 va_start(args, pszFormat); 608 char *psz = NULL; 609 RTStrAPrintfV(&psz, pszFormat, args); 610 va_end(args); 611 612 AssertPtr(psz); 613 LogRel(("Error: %s", psz)); 614 615 MessageBox(GetDesktopWindow(), psz, "VBoxTray - Error", MB_OK | MB_ICONERROR); 616 617 RTStrFree(psz); 618 619 return RTEXITCODE_FAILURE; 595 620 } 596 621 -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxTray.h
r69500 r76098 5 5 6 6 /* 7 * Copyright (C) 2006-201 7Oracle Corporation7 * Copyright (C) 2006-2018 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 188 188 extern uint32_t g_fGuestDisplaysChanged; 189 189 190 RTEXITCODE VBoxTrayShowError(const char *pszFormat, ...); 191 190 192 #endif /* !___VBOXTRAY_H */ 191 193
Note:
See TracChangeset
for help on using the changeset viewer.