[kernel] DelayLoadFailureHook crash fix

Robert Reif reif at earthlink.net
Wed Dec 28 09:28:11 CST 2005


This fixes a crash in DelayLoadFailureHook when printing
the arguments in the ERR function.

I don't believe the patch is technically correct because the
second argument is probably a number rather than a string
and this patch just makes the ERR statement tolerant of
the wrong argument type.
-------------- next part --------------
Index: dlls/kernel/module.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/module.c,v
retrieving revision 1.23
diff -p -u -r1.23 module.c
--- dlls/kernel/module.c	12 Dec 2005 12:46:33 -0000	1.23
+++ dlls/kernel/module.c	28 Dec 2005 15:08:04 -0000
@@ -992,7 +992,7 @@ FARPROC WINAPI DelayLoadFailureHook( LPC
 {
     ULONG_PTR args[2];
 
-    ERR( "failed to delay load %s.%s\n", name, function );
+    ERR( "failed to delay load %s.%s\n", debugstr_a(name), debugstr_a(function) );
     args[0] = (ULONG_PTR)name;
     args[1] = (ULONG_PTR)function;
     RaiseException( EXCEPTION_WINE_STUB, EH_NONCONTINUABLE, 2, args );


More information about the wine-patches mailing list