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

Alexandre Julliard julliard at winehq.org
Fri Oct 13 18:44:15 CDT 2017


Module: wine
Branch: master
Commit: c751b69f889c2385684407494f6815824aa232b1
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c751b69f889c2385684407494f6815824aa232b1

Author: Hugh McMaster <hugh.mcmaster at outlook.com>
Date:   Fri Oct 13 08:14:05 2017 +0000

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

Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 programs/regedit/tests/regedit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/programs/regedit/tests/regedit.c b/programs/regedit/tests/regedit.c
index 3e949a5..37181bf 100644
--- a/programs/regedit/tests/regedit.c
+++ b/programs/regedit/tests/regedit.c
@@ -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;
 




More information about the wine-cvs mailing list