ntdll: Fix file test to not free memory allocated on the stack.

This commit is contained in:
Maarten Lankhorst 2008-05-07 11:05:13 -07:00 committed by Alexandre Julliard
parent 9c509234bc
commit b574c11582
1 changed files with 0 additions and 4 deletions

View File

@ -39,7 +39,6 @@
#endif #endif
static VOID (WINAPI *pRtlInitUnicodeString)( PUNICODE_STRING, LPCWSTR ); static VOID (WINAPI *pRtlInitUnicodeString)( PUNICODE_STRING, LPCWSTR );
static VOID (WINAPI *pRtlFreeUnicodeString)(PUNICODE_STRING);
static NTSTATUS (WINAPI *pNtCreateMailslotFile)( PHANDLE, ULONG, POBJECT_ATTRIBUTES, PIO_STATUS_BLOCK, static NTSTATUS (WINAPI *pNtCreateMailslotFile)( PHANDLE, ULONG, POBJECT_ATTRIBUTES, PIO_STATUS_BLOCK,
ULONG, ULONG, ULONG, PLARGE_INTEGER ); ULONG, ULONG, ULONG, PLARGE_INTEGER );
static NTSTATUS (WINAPI *pNtReadFile)(HANDLE hFile, HANDLE hEvent, static NTSTATUS (WINAPI *pNtReadFile)(HANDLE hFile, HANDLE hEvent,
@ -467,8 +466,6 @@ static void nt_mailslot_test(void)
rc = pNtClose(hslot); rc = pNtClose(hslot);
ok( rc == STATUS_SUCCESS, "NtClose failed\n"); ok( rc == STATUS_SUCCESS, "NtClose failed\n");
pRtlFreeUnicodeString(&str);
} }
static void test_iocp_setcompletion(HANDLE h) static void test_iocp_setcompletion(HANDLE h)
@ -611,7 +608,6 @@ START_TEST(file)
return; return;
} }
pRtlFreeUnicodeString = (void *)GetProcAddress(hntdll, "RtlFreeUnicodeString");
pRtlInitUnicodeString = (void *)GetProcAddress(hntdll, "RtlInitUnicodeString"); pRtlInitUnicodeString = (void *)GetProcAddress(hntdll, "RtlInitUnicodeString");
pNtCreateMailslotFile = (void *)GetProcAddress(hntdll, "NtCreateMailslotFile"); pNtCreateMailslotFile = (void *)GetProcAddress(hntdll, "NtCreateMailslotFile");
pNtReadFile = (void *)GetProcAddress(hntdll, "NtReadFile"); pNtReadFile = (void *)GetProcAddress(hntdll, "NtReadFile");