Module: wine Branch: master Commit: b574c11582eac45499e7a78fcbe654ad897dd94b URL: http://source.winehq.org/git/wine.git/?a=commit;h=b574c11582eac45499e7a78fcb...
Author: Maarten Lankhorst m.b.lankhorst@gmail.com Date: Wed May 7 11:05:13 2008 -0700
ntdll: Fix file test to not free memory allocated on the stack.
---
dlls/ntdll/tests/file.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/dlls/ntdll/tests/file.c b/dlls/ntdll/tests/file.c index 8d2ffc3..7b88b01 100644 --- a/dlls/ntdll/tests/file.c +++ b/dlls/ntdll/tests/file.c @@ -39,7 +39,6 @@ #endif
static VOID (WINAPI *pRtlInitUnicodeString)( PUNICODE_STRING, LPCWSTR ); -static VOID (WINAPI *pRtlFreeUnicodeString)(PUNICODE_STRING); static NTSTATUS (WINAPI *pNtCreateMailslotFile)( PHANDLE, ULONG, POBJECT_ATTRIBUTES, PIO_STATUS_BLOCK, ULONG, ULONG, ULONG, PLARGE_INTEGER ); static NTSTATUS (WINAPI *pNtReadFile)(HANDLE hFile, HANDLE hEvent, @@ -467,8 +466,6 @@ static void nt_mailslot_test(void)
rc = pNtClose(hslot); ok( rc == STATUS_SUCCESS, "NtClose failed\n"); - - pRtlFreeUnicodeString(&str); }
static void test_iocp_setcompletion(HANDLE h) @@ -611,7 +608,6 @@ START_TEST(file) return; }
- pRtlFreeUnicodeString = (void *)GetProcAddress(hntdll, "RtlFreeUnicodeString"); pRtlInitUnicodeString = (void *)GetProcAddress(hntdll, "RtlInitUnicodeString"); pNtCreateMailslotFile = (void *)GetProcAddress(hntdll, "NtCreateMailslotFile"); pNtReadFile = (void *)GetProcAddress(hntdll, "NtReadFile");