Robert Reif : advapi32: Fix LsaQueryInformationPolicy HeapAlloc bug.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Jul 12 06:53:39 CDT 2006


Module: wine
Branch: master
Commit: 9733f6e75cd3322a7d9bb86903a812f091b812a2
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=9733f6e75cd3322a7d9bb86903a812f091b812a2

Author: Robert Reif <reif at earthlink.net>
Date:   Tue Jul 11 19:52:57 2006 -0400

advapi32: Fix LsaQueryInformationPolicy HeapAlloc bug.

---

 dlls/advapi32/lsa.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/advapi32/lsa.c b/dlls/advapi32/lsa.c
index c168958..6e70345 100644
--- a/dlls/advapi32/lsa.c
+++ b/dlls/advapi32/lsa.c
@@ -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-cvs mailing list