James Hawkins : advapi32: Send in an empty string to RegSetValueEx to avoid a test failure in win95.

Alexandre Julliard julliard at winehq.org
Wed Jul 2 06:03:38 CDT 2008


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

Author: James Hawkins <jhawkins at codeweavers.com>
Date:   Tue Jul  1 23:23:51 2008 -0500

advapi32: Send in an empty string to RegSetValueEx to avoid a test failure in win95.

---

 dlls/advapi32/tests/registry.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/advapi32/tests/registry.c b/dlls/advapi32/tests/registry.c
index 58c7202..c4f039a 100644
--- a/dlls/advapi32/tests/registry.c
+++ b/dlls/advapi32/tests/registry.c
@@ -437,7 +437,7 @@ static void create_test_entries(void)
         "RegSetValueExA failed\n");
     ok(!RegSetValueExA(hkey_main,"TP1_SZ",0,REG_SZ, (const BYTE *)sTestpath1, strlen(sTestpath1)+1), 
         "RegSetValueExA failed\n");
-    ok(!RegSetValueExA(hkey_main,"TP1_ZB_SZ",0,REG_SZ, NULL, 0),
+    ok(!RegSetValueExA(hkey_main,"TP1_ZB_SZ",0,REG_SZ, (const BYTE *)"", 0),
        "RegSetValueExA failed\n");
     ok(!RegSetValueExA(hkey_main,"TP2_EXP_SZ",0,REG_EXPAND_SZ, (const BYTE *)sTestpath2, strlen(sTestpath2)+1), 
         "RegSetValueExA failed\n");




More information about the wine-cvs mailing list