[PATCH] kernel32: Add the module name to the unsupported flags fixme

Detlef Riekenberg wine.dev at web.de
Tue Jan 15 14:30:52 CST 2013


Result:
0035:fixme:module:load_library unsupported flag(0x20) of 0x22 requested for L"C:\\winsat_w7.exe"

--
By by ... Detlef
---
 dlls/kernel32/module.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/dlls/kernel32/module.c b/dlls/kernel32/module.c
index 9913f1b..8fd4b79 100644
--- a/dlls/kernel32/module.c
+++ b/dlls/kernel32/module.c
@@ -59,6 +59,12 @@ static CRITICAL_SECTION_DEBUG critsect_debug =
 static CRITICAL_SECTION dlldir_section = { &critsect_debug, -1, 0, 0, 0, 0 };
 
 
+static LPCSTR debugstr_us(const UNICODE_STRING *us)
+{
+    if (!us) return "<null>";
+    return debugstr_wn(us->Buffer, us->Length / sizeof(WCHAR));
+}
+
 /****************************************************************************
  *              GetDllDirectoryA   (KERNEL32.@)
  */
@@ -868,7 +874,7 @@ static HMODULE load_library( const UNICODE_STRING *libname, DWORD flags )
         LOAD_LIBRARY_REQUIRE_SIGNED_TARGET;
 
     if( flags & unsupported_flags)
-        FIXME("unsupported flag(s) used (flags: 0x%08x)\n", flags);
+        FIXME("unsupported flag(0x%x) of 0x%x requested for %s\n", flags & unsupported_flags, flags, debugstr_us(libname));
 
     load_path = MODULE_get_dll_load_path( flags & LOAD_WITH_ALTERED_SEARCH_PATH ? libname->Buffer : NULL );
 
-- 
1.7.5.4




More information about the wine-patches mailing list