Module: wine Branch: master Commit: e96056a026466083ebd332b9730476c178b6a859 URL: http://source.winehq.org/git/wine.git/?a=commit;h=e96056a026466083ebd332b973... Author: Hugh McMaster <hugh.mcmaster(a)outlook.com> Date: Tue Mar 21 08:47:09 2017 +0000 regedit/tests: Add missing ok() check after RegOpenKeyExA(). Signed-off-by: Hugh McMaster <hugh.mcmaster(a)outlook.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- programs/regedit/tests/regedit.c | 1 + 1 file changed, 1 insertion(+) diff --git a/programs/regedit/tests/regedit.c b/programs/regedit/tests/regedit.c index eacb583..b91df5a 100644 --- a/programs/regedit/tests/regedit.c +++ b/programs/regedit/tests/regedit.c @@ -518,6 +518,7 @@ static void test_comments(void) ";comment\\\n" "\"Wine2\"=\"Line 2\"\n\n"); lr = RegOpenKeyExA(HKEY_CURRENT_USER, KEY_BASE, 0, KEY_READ, &hkey); + ok(lr == ERROR_SUCCESS, "RegOpenKeyExA failed: %d\n", lr); verify_reg(hkey, "Wine1", REG_SZ, "Line 1", 7, 0); verify_reg(hkey, "Wine2", REG_SZ, "Line 2", 7, 0);