Fix SNOOP_GetProcAddress and RELAY_GetProcAddress on non-i386

Pierre d'Herbemont stegefin at free.fr
Fri Jun 18 07:31:32 CDT 2004


Hi!

Here is a small fix for the SNOOP_GetProcAddress  and 
RELAY_GetProcAddress  implementation, which doesn't match the prototype 
on non-i386 host (use of const).

Pierre.

ChangeLog:
Fix a compile error for SNOOP_GetProcAddress and RELAY_GetProcAddress 
on non-i386.


-------------- next part --------------
Index: dlls/ntdll/relay.c
===================================================================
RCS file: /home/wine/wine/dlls/ntdll/relay.c,v
retrieving revision 1.12
diff -u -r1.12 relay.c
--- dlls/ntdll/relay.c	15 Jun 2004 00:47:00 -0000	1.12
+++ dlls/ntdll/relay.c	18 Jun 2004 12:30:32 -0000
@@ -1109,13 +1109,13 @@
 
 #else  /* __i386__ */
 
-FARPROC RELAY_GetProcAddress( HMODULE module, IMAGE_EXPORT_DIRECTORY *exports,
+FARPROC RELAY_GetProcAddress( HMODULE module, const IMAGE_EXPORT_DIRECTORY *exports,
                               DWORD exp_size, FARPROC proc, const WCHAR *user )
 {
     return proc;
 }
 
-FARPROC SNOOP_GetProcAddress( HMODULE hmod, IMAGE_EXPORT_DIRECTORY *exports, DWORD exp_size,
+FARPROC SNOOP_GetProcAddress( HMODULE hmod, const IMAGE_EXPORT_DIRECTORY *exports, DWORD exp_size,
                               FARPROC origfun, DWORD ordinal, const WCHAR *user )
 {
     return origfun;


More information about the wine-patches mailing list