Daniel Lehman : advapi32/tests: Don't call function in assert().
Alexandre Julliard
julliard at winehq.org
Wed May 2 15:50:02 CDT 2018
Module: wine
Branch: master
Commit: 36a67edd1ef0b1eb45a9928ac9337244b935cee7
URL: https://source.winehq.org/git/wine.git/?a=commit;h=36a67edd1ef0b1eb45a9928ac9337244b935cee7
Author: Daniel Lehman <dlehman at esri.com>
Date: Sat Apr 28 13:02:08 2018 -0700
advapi32/tests: Don't call function in assert().
Signed-off-by: Daniel Lehman <dlehman at esri.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/advapi32/tests/registry.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dlls/advapi32/tests/registry.c b/dlls/advapi32/tests/registry.c
index 1df117b..2f7566c 100644
--- a/dlls/advapi32/tests/registry.c
+++ b/dlls/advapi32/tests/registry.c
@@ -175,9 +175,12 @@ static DWORD delete_key( HKEY hkey )
static void setup_main_key(void)
{
+ DWORD ret;
+
if (!RegOpenKeyA( HKEY_CURRENT_USER, "Software\\Wine\\Test", &hkey_main )) delete_key( hkey_main );
- assert (!RegCreateKeyA( HKEY_CURRENT_USER, "Software\\Wine\\Test", &hkey_main ));
+ ret = RegCreateKeyA( HKEY_CURRENT_USER, "Software\\Wine\\Test", &hkey_main );
+ ok(ret == ERROR_SUCCESS, "expected ERROR_SUCCESS, got %d\n", ret);
}
static void check_user_privs(void)
More information about the wine-cvs
mailing list