Commit 3f7f4cdc authored by Hugh McMaster's avatar Hugh McMaster Committed by Alexandre Julliard

reg/tests: Print an error code when CreateFile fails.

parent de7220e2
......@@ -801,7 +801,7 @@ static BOOL write_file(const void *str, DWORD size)
file = CreateFileA("test.reg", GENERIC_WRITE, 0, NULL, CREATE_ALWAYS,
FILE_ATTRIBUTE_NORMAL, NULL);
ok(file != INVALID_HANDLE_VALUE, "Failed to create registry file\n");
ok(file != INVALID_HANDLE_VALUE, "CreateFile failed: %u\n", GetLastError());
if (file == INVALID_HANDLE_VALUE)
return FALSE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment