[PATCH 2/7] advapi32: Prepend a hidden LSA_TRUST_INFORMATION in LsaLookupSids to avoid crash when Domains[-1] incorrectly accessed by application.
Qian Hong
qhong at codeweavers.com
Sat Apr 4 09:27:34 CDT 2015
This patch fixes another Cygwin/MSYS2 crash. Actually it is an
application bug and fixed in Cygwin recently after reporting:
http://permalink.gmane.org/gmane.os.cygwin/152195
However, Cygwin/MSYS2 never crash on Windows, it seems native has
similar handling to work around application bug.
Since DomainIndex == -1 is a valid case according to both MSDN and
tests, there might be more broken applications access to Domain[-1] by
accident, so it would be great to have this handled in Wine.
---
dlls/advapi32/lsa.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-advapi32-Prepend-a-hidden-LSA_TRUST_INFORMATION-in-Lsa.txt
Type: text/x-patch
Size: 2021 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20150404/9b4d30b2/attachment.bin>
More information about the wine-patches
mailing list