[PATCH] advapi32: succeed for null pointer in ChangeServiceConfig2

Bernhard Übelacker bernhardu at vr-web.de
Thu Mar 19 07:06:02 CDT 2015


Hello,
attached patch avoids an issue when trying to run Flatout 2 with copy
protection.

When starting Flatout2.exe for the first time it wants to install some
services, but shows in wine some error messages.

The only visible sign in terminal output, that something went wrong, is
this:
    err:rpc:I_RpcReceive we got fault packet with status 0x3e6

And of course later some dialog showing error 998 (=0x3e6) and a
unhandled exception.

This is because the SC_RPC_CONFIG_INFOW parameter has in its
descr->lpDescription a null pointer instead of a valid LPWSTR.

Right now this null pointer would be accessed in
svcctl_ChangeServiceConfig2W and causes an exception there , but is
hidden by the RPC layer.

(And of course this makes the SF4 protection still not working.)

Kind regards,
Bernhard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-advapi32-succeed-for-null-pointer-in-ChangeServiceCo.patch
Type: text/x-patch
Size: 1652 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20150319/5a675acc/attachment.bin>


More information about the wine-patches mailing list