Commit 63d29eb7 authored by Alexandre Julliard's avatar Alexandre Julliard

Fixed string lengths to do the right thing for all platforms.

parent ee067be6
...@@ -49,9 +49,9 @@ static void create_test_entrys(void) ...@@ -49,9 +49,9 @@ static void create_test_entrys(void)
if (hKey) if (hKey)
{ {
ok(!RegSetValueExA(hKey,"Test1",0,REG_EXPAND_SZ, sTestpath1, strlen(sTestpath1)), "RegSetValueExA failed"); ok(!RegSetValueExA(hKey,"Test1",0,REG_EXPAND_SZ, sTestpath1, strlen(sTestpath1)+1), "RegSetValueExA failed");
ok(!RegSetValueExA(hKey,"Test2",0,REG_SZ, sTestpath1, strlen(sTestpath1)), "RegSetValueExA failed"); ok(!RegSetValueExA(hKey,"Test2",0,REG_SZ, sTestpath1, strlen(sTestpath1)+1), "RegSetValueExA failed");
ok(!RegSetValueExA(hKey,"Test3",0,REG_EXPAND_SZ, sTestpath2, strlen(sTestpath2)), "RegSetValueExA failed"); ok(!RegSetValueExA(hKey,"Test3",0,REG_EXPAND_SZ, sTestpath2, strlen(sTestpath2)+1), "RegSetValueExA failed");
RegCloseKey(hKey); RegCloseKey(hKey);
} }
...@@ -108,8 +108,8 @@ static void test_SHQUeryValueEx(void) ...@@ -108,8 +108,8 @@ static void test_SHQUeryValueEx(void)
/****** SHQueryValueExA ******/ /****** SHQueryValueExA ******/
sTestedFunction = "SHQueryValueExA"; sTestedFunction = "SHQueryValueExA";
nUsedBuffer1 = max(strlen(sExpTestpath1)+1, strlen(sTestpath1)); nUsedBuffer1 = max(strlen(sExpTestpath1)+1, strlen(sTestpath1)+1);
nUsedBuffer2 = max(strlen(sExpTestpath2)+1, strlen(sTestpath2)); nUsedBuffer2 = max(strlen(sExpTestpath2)+1, strlen(sTestpath2)+1);
/* /*
* Case 1.1 All arguments are NULL * Case 1.1 All arguments are NULL
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment