Changeset 106867 in vbox for trunk/src/VBox
- Timestamp:
- Nov 7, 2024 9:15:48 AM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/installation/VBoxWinDrvInst.cpp
r106857 r106867 39 39 #include <iprt/cdefs.h> 40 40 #include <iprt/dir.h> 41 #include <iprt/err.h>42 41 #include <iprt/ldr.h> 43 42 #include <iprt/list.h> … … 52 51 #include "product-generated.h" 53 52 53 #include <VBox/err.h> /* For VERR_PLATFORM_ARCH_NOT_SUPPORTED.*/ 54 54 #include <VBox/version.h> 55 55 … … 497 497 498 498 /** 499 * Returns a winerr.h error as a string. 500 * 501 * Needded to get at least a minimally meaningful error string back. 502 * 503 * @returns Error as a string, or NULL if not found. 504 * @param dwErr Error code to return as a string. 505 */ 506 DECLINLINE(const char *) vboxWinDrvWinErrToStr(const DWORD dwErr) 507 { 508 switch (dwErr) 509 { 510 511 RT_CASE_RET_STR(ERROR_BADKEY ); 512 default: 513 break; 514 } 515 516 return NULL; 517 } 518 519 /** 499 520 * Logs the last Windows error given via GetLastError(). 500 521 * … … 524 545 /* Try resolving Setup API errors first (we don't handle those in IPRT). */ 525 546 const char *pszErr = vboxWinDrvSetupApiErrToStr(dwErr); 547 if (!pszErr) /* Also ask for special winerr.h codes we don't handle in IPRT. */ 548 pszErr = vboxWinDrvWinErrToStr(dwErr); 526 549 if (!pszErr) 527 550 rc = RTErrConvertFromWin32(dwErr);
Note:
See TracChangeset
for help on using the changeset viewer.