kernelbase/tests: Close mapping in MapViewOfFile3 test.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52970
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2022-05-12 09:12:54 +03:00 committed by Alexandre Julliard
parent 4e5eaba51f
commit 1336f5966f
1 changed files with 4 additions and 1 deletions

View File

@ -96,6 +96,7 @@ static void test_MapViewOfFile3(void)
static const char testfile[] = "testfile.xxx";
HANDLE file, mapping;
void *ptr;
BOOL ret;
if (!pMapViewOfFile3)
{
@ -118,8 +119,10 @@ static void test_MapViewOfFile3(void)
ok( ptr != NULL, "MapViewOfFile FILE_MAP_READ error %lu\n", GetLastError() );
UnmapViewOfFile( ptr );
CloseHandle( mapping );
CloseHandle( file );
DeleteFileA( testfile );
ret = DeleteFileA( testfile );
ok(ret, "Failed to delete a test file.\n");
}
START_TEST(process)