Robert Reif : kernel: DelayLoadFailureHook crash fix.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Jan 3 06:38:01 CST 2006
Module: wine
Branch: refs/heads/master
Commit: 6501d7b155138f03d6e6247d6ab8e9b24713e5b0
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=6501d7b155138f03d6e6247d6ab8e9b24713e5b0
Author: Robert Reif <reif at earthlink.net>
Date: Tue Jan 3 13:15:55 2006 +0100
kernel: DelayLoadFailureHook crash fix.
---
dlls/kernel/module.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dlls/kernel/module.c b/dlls/kernel/module.c
index c26345d..4610adf 100644
--- a/dlls/kernel/module.c
+++ b/dlls/kernel/module.c
@@ -992,7 +992,10 @@ FARPROC WINAPI DelayLoadFailureHook( LPC
{
ULONG_PTR args[2];
- ERR( "failed to delay load %s.%s\n", name, function );
+ if ((ULONG_PTR)function >> 16)
+ ERR( "failed to delay load %s.%s\n", name, function );
+ else
+ ERR( "failed to delay load %s.%u\n", name, LOWORD(function) );
args[0] = (ULONG_PTR)name;
args[1] = (ULONG_PTR)function;
RaiseException( EXCEPTION_WINE_STUB, EH_NONCONTINUABLE, 2, args );
More information about the wine-cvs
mailing list