advapi32: fix LsaQueryInformationPolicy HeapAlloc bug
Robert Reif
reif at earthlink.net
Tue Jul 11 18:52:57 CDT 2006
-------------- next part --------------
Index: dlls/advapi32/lsa.c
===================================================================
RCS file: /home/wine/wine/dlls/advapi32/lsa.c,v
retrieving revision 1.8
diff -p -u -r1.8 lsa.c
--- dlls/advapi32/lsa.c 23 May 2006 12:47:28 -0000 1.8
+++ dlls/advapi32/lsa.c 11 Jul 2006 23:49:41 -0000
@@ -421,7 +421,7 @@ NTSTATUS WINAPI LsaQueryInformationPolic
SID_IDENTIFIER_AUTHORITY localSidAuthority = {SECURITY_NT_AUTHORITY};
- struct di * xdi = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(xdi));
+ struct di * xdi = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*xdi));
HKEY key;
BOOL useDefault = TRUE;
LONG ret;
More information about the wine-patches
mailing list