shell32: Check IsWoW64Process before calling Wow64 functions (try 2)

Olivier F. R. Dierick o.dierick at piezo-forte.be
Fri Nov 27 23:25:33 CST 2015


Replace patch entry 116937.

Fix one of the error leak source that prevents the installer to succeed
(bug 36838).

On 32 bit Wine, the original code did set last error to
ERROR_CALL_NOT_IMPLEMENTED when calling wow64 functions. The game
installer chokes at some point when the last error is anything but zero
and fails to complete the installation. Checking if wow64 is available
before calling wow64 functions avoids that. The affected wow64 function
calls themselves are not required for proper operation on 32 bit
systems.

Signed-off-by: Olivier F. R. Dierick <o.dierick at piezo-forte.be>
---
 dlls/shell32/shfldr_unixfs.c |    9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

-- 
        Olivier F. R. Dierick
        o.dierick at piezo-forte.be
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Check-IsWoW64Process-before-calling-Wow64-functions.patch
Type: application/mbox
Size: 2073 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20151128/98c900e9/attachment.mbox>


More information about the wine-patches mailing list