dbghelp: Fix the position where the calling convention is specified in function pointers.

Francois Gouget fgouget at free.fr
Sun Jan 15 14:09:02 CST 2012

Some compilers issue an error if it's not in the right place.

I think it's not just gcc 2.95 but also others like MSVC or some such.

 dlls/dbghelp/symbol.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/dbghelp/symbol.c b/dlls/dbghelp/symbol.c
index 6c5aebf..ac1824b 100644
--- a/dlls/dbghelp/symbol.c
+++ b/dlls/dbghelp/symbol.c
@@ -1853,7 +1853,7 @@ DWORD WINAPI UnDecorateSymbolName(PCSTR DecoratedName, PSTR UnDecoratedName,
                                   DWORD UndecoratedLength, DWORD Flags)
     /* undocumented from msvcrt */
-    static char* (* CDECL p_undname)(char*, const char*, int, void* (* CDECL)(size_t), void (* CDECL)(void*), unsigned short);
+    static char* (CDECL *p_undname)(char*, const char*, int, void* (CDECL*)(size_t), void (CDECL*)(void*), unsigned short);
     static const WCHAR szMsvcrt[] = {'m','s','v','c','r','t','.','d','l','l',0};
     TRACE("(%s, %p, %d, 0x%08x)\n",

More information about the wine-patches mailing list