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

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hugh McMaster 2017-10-13 08:14:05 +00:00 committed by Alexandre Julliard
parent d75e38c718
commit c751b69f88
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,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;