Alexandre Julliard : shell32: Don' t try to call a 16-bit function on non-x86 platforms.

Alexandre Julliard julliard at winehq.org
Fri Sep 25 10:25:07 CDT 2009


Module: wine
Branch: master
Commit: e55acdb642c544e0622887ef3f03f67c86f10acf
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e55acdb642c544e0622887ef3f03f67c86f10acf

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Sep 25 14:37:57 2009 +0200

shell32: Don't try to call a 16-bit function on non-x86 platforms.

---

 dlls/shell32/control.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/shell32/control.c b/dlls/shell32/control.c
index 9b566b6..cfea201 100644
--- a/dlls/shell32/control.c
+++ b/dlls/shell32/control.c
@@ -886,6 +886,7 @@ HRESULT WINAPI Control_FillCache_RunDLLA(HWND hWnd, HANDLE hModule, DWORD w, DWO
 void WINAPI RunDLL_CallEntry16( DWORD proc, HWND hwnd, HINSTANCE inst,
                                 LPCSTR cmdline, INT cmdshow )
 {
+#ifdef __i386__
     WORD args[5];
     SEGPTR cmdline_seg;
 
@@ -900,6 +901,7 @@ void WINAPI RunDLL_CallEntry16( DWORD proc, HWND hwnd, HINSTANCE inst,
     args[0] = cmdshow;
     WOWCallback16Ex( proc, WCB16_PASCAL, sizeof(args), args, NULL );
     UnMapLS( cmdline_seg );
+#endif
 }
 
 /*************************************************************************




More information about the wine-cvs mailing list