Commit fed6738b authored by Dan Kegel's avatar Dan Kegel Committed by Alexandre Julliard

advapi32: Fix leak in test_symlinks.

parent 3f310113
......@@ -39,6 +39,7 @@ static DWORD (WINAPI *pRegGetValueA)(HKEY,LPCSTR,LPCSTR,DWORD,LPDWORD,PVOID,LPDW
static DWORD (WINAPI *pRegDeleteTreeA)(HKEY,LPCSTR);
static NTSTATUS (WINAPI * pNtDeleteKey)(HANDLE);
static NTSTATUS (WINAPI * pRtlFormatCurrentUserKeyPath)(UNICODE_STRING*);
static NTSTATUS (WINAPI * pRtlFreeUnicodeString)(PUNICODE_STRING);
/* Debugging functions from wine/libs/wine/debug.c */
......@@ -125,6 +126,7 @@ static void InitFunctionPtrs(void)
ADVAPI32_GET_PROC(RegDeleteTreeA);
pRtlFormatCurrentUserKeyPath = (void *)GetProcAddress( hntdll, "RtlFormatCurrentUserKeyPath" );
pRtlFreeUnicodeString = (void *)GetProcAddress(hntdll, "RtlFreeUnicodeString");
pNtDeleteKey = (void *)GetProcAddress( hntdll, "NtDeleteKey" );
}
......@@ -1633,6 +1635,7 @@ static void test_symlinks(void)
RegCloseKey( link );
HeapFree( GetProcessHeap(), 0, target );
pRtlFreeUnicodeString( &target_str );
}
START_TEST(registry)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment