This fixes Bugzilla bug https://bugs.winehq.org/show_bug.cgi?id=39129 and gets Cygwin's postinstall scripts not to crash.
The patch is from wine-staging, and was first submitted to Wine on 7 April 2015: https://github.com/wine-compholio/wine-staging/blob/master/patches/advapi32-...
Original submission comments: ---snip--- advapi32: Initialize buffer length to zero in LsaLookupSids to prevent crash. (try 2)
Superseded 110588-110594
Try 2: - Use RtlInitUnicodeStringEx to simplify code when possible. Same for other patches in this series. (Thanks Nikolay) ---snip---
From: Qian Hong qhong@codeweavers.com Signed-off-by: Damjan Jovanovic damjan.jov@gmail.com --- dlls/advapi32/lsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)