advapi32: Fix leak in test_symlinks.
This commit is contained in:
parent
3f3101138a
commit
fed6738bc4
@ -39,6 +39,7 @@ static DWORD (WINAPI *pRegGetValueA)(HKEY,LPCSTR,LPCSTR,DWORD,LPDWORD,PVOID,LPDW
|
|||||||
static DWORD (WINAPI *pRegDeleteTreeA)(HKEY,LPCSTR);
|
static DWORD (WINAPI *pRegDeleteTreeA)(HKEY,LPCSTR);
|
||||||
static NTSTATUS (WINAPI * pNtDeleteKey)(HANDLE);
|
static NTSTATUS (WINAPI * pNtDeleteKey)(HANDLE);
|
||||||
static NTSTATUS (WINAPI * pRtlFormatCurrentUserKeyPath)(UNICODE_STRING*);
|
static NTSTATUS (WINAPI * pRtlFormatCurrentUserKeyPath)(UNICODE_STRING*);
|
||||||
|
static NTSTATUS (WINAPI * pRtlFreeUnicodeString)(PUNICODE_STRING);
|
||||||
|
|
||||||
|
|
||||||
/* Debugging functions from wine/libs/wine/debug.c */
|
/* Debugging functions from wine/libs/wine/debug.c */
|
||||||
@ -125,6 +126,7 @@ static void InitFunctionPtrs(void)
|
|||||||
ADVAPI32_GET_PROC(RegDeleteTreeA);
|
ADVAPI32_GET_PROC(RegDeleteTreeA);
|
||||||
|
|
||||||
pRtlFormatCurrentUserKeyPath = (void *)GetProcAddress( hntdll, "RtlFormatCurrentUserKeyPath" );
|
pRtlFormatCurrentUserKeyPath = (void *)GetProcAddress( hntdll, "RtlFormatCurrentUserKeyPath" );
|
||||||
|
pRtlFreeUnicodeString = (void *)GetProcAddress(hntdll, "RtlFreeUnicodeString");
|
||||||
pNtDeleteKey = (void *)GetProcAddress( hntdll, "NtDeleteKey" );
|
pNtDeleteKey = (void *)GetProcAddress( hntdll, "NtDeleteKey" );
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1633,6 +1635,7 @@ static void test_symlinks(void)
|
|||||||
RegCloseKey( link );
|
RegCloseKey( link );
|
||||||
|
|
||||||
HeapFree( GetProcessHeap(), 0, target );
|
HeapFree( GetProcessHeap(), 0, target );
|
||||||
|
pRtlFreeUnicodeString( &target_str );
|
||||||
}
|
}
|
||||||
|
|
||||||
START_TEST(registry)
|
START_TEST(registry)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user