On 7/1/21 3:33 PM, Rémi Bernon wrote:
+void winetest_kernel_check(void) +{
- char buffer[512];
- DWORD size;
- SetFilePointer(okfile, 0, NULL, FILE_BEGIN);
- do
- {
ReadFile(okfile, buffer, sizeof(buffer), &size, NULL);
printf("%.*s", size, buffer);
- } while (size == sizeof(buffer));
- SetFilePointer(okfile, 0, NULL, FILE_BEGIN);
- /* SetEndOfFile(okfile); */
- InterlockedExchangeAdd(&failures, InterlockedExchange(&kernel_data->failures, 0));
- InterlockedExchangeAdd(&todo_failures, InterlockedExchange(&kernel_data->todo_failures, 0));
+}
+void winetest_kernel_cleanup(void) +{
- UnmapViewOfFile(kernel_data);
- CloseHandle(winetest_mapping);
- CloseHandle(okfile);
- /* DeleteFileA("C:\windows\winetest_kernel_okfile"); */
+}
Oops, these looks like some debugging left-overs, sorry I'll resend.