Skip to content

Commit

Permalink
reg/tests: Print an error code when CreateFile fails.
Browse files Browse the repository at this point in the history
Signed-off-by: Hugh McMaster <[email protected]>
Signed-off-by: Alexandre Julliard <[email protected]>
  • Loading branch information
hughmcmaster authored and julliard committed Oct 13, 2017
1 parent de7220e commit 3f7f4cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion programs/reg/tests/reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 3f7f4cd

Please sign in to comment.