From 87a1ab5871d43166a4ce32798093ddfd144c0fbf Mon Sep 17 00:00:00 2001 From: Bob Arnson Date: Sat, 16 Dec 2023 22:07:05 -0500 Subject: [PATCH] Enhance error message. --- src/libs/dutil/WixToolset.DUtil/apputil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/dutil/WixToolset.DUtil/apputil.cpp b/src/libs/dutil/WixToolset.DUtil/apputil.cpp index 42f589dcc..c08fffc79 100644 --- a/src/libs/dutil/WixToolset.DUtil/apputil.cpp +++ b/src/libs/dutil/WixToolset.DUtil/apputil.cpp @@ -69,7 +69,7 @@ DAPI_(HRESULT) LoadSystemLibrary( if (vpfnSetDefaultDllDirectories) // LOAD_LIBRARY_SEARCH_SYSTEM32 was added at same time as SetDefaultDllDirectories. { *phModule = ::LoadLibraryExW(wzModuleName, NULL, LOAD_LIBRARY_SEARCH_SYSTEM32); - AppExitOnNullWithLastError(*phModule, hr, "Failed to get load library with LOAD_LIBRARY_SEARCH_SYSTEM32."); + AppExitOnNullWithLastError(*phModule, hr, "Failed to load library with LOAD_LIBRARY_SEARCH_SYSTEM32: %ls.", wzModuleName); } else {