Alexander Morozov <amorozov(a)etersoft.ru> wrote:
> + ptr = MapViewOfFile(mapping, FILE_MAP_WRITE, 0, 0, 0);
> + ok( ptr != NULL, "MapViewOfFile failed with error %d\n", GetLastError() );
> + CloseHandle(mapping);
> +
> + SetLastError(0xdeadbeef);
> + mapping = CreateFileMappingA(INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, 0, MAPPING_SIZE, name);
> + ok( mapping != INVALID_HANDLE_VALUE, "CreateFileMappingA failed\n" );
It would be interesting to add OpenFileMapping before and after CloseHandle
and test what it returns.
--
Dmitry.