Shell32: Check if is_wow64 before calling wow64 functions

Olivier F. R. Dierick o.dierick at piezo-forte.be
Wed Nov 25 00:55:43 CST 2015


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 |   11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

-- 
        Olivier F. R. Dierick
        o.dierick at piezo-forte.be
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Check-if-is_wow64-before-calling-wow64-functions.patch
Type: application/mbox
Size: 2246 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20151125/38a1c8a3/attachment-0001.mbox>


More information about the wine-patches mailing list