Author: akhaldi
Date: Sat Apr 25 10:56:44 2015
New Revision: 67397
URL: http://svn.reactos.org/svn/reactos?rev=67397&view=rev
Log:
[SHDOCVW_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
Modified:
trunk/rostests/winetests/shdocvw/shdocvw.c
Modified: trunk/rostests/winetests/shdocvw/shdocvw.c
URL: http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/shdocvw/shdocvw…
==============================================================================
--- trunk/rostests/winetests/shdocvw/shdocvw.c [iso-8859-1] (original)
+++ trunk/rostests/winetests/shdocvw/shdocvw.c [iso-8859-1] Sat Apr 25 10:56:44 2015
@@ -212,13 +212,13 @@
buffer[sizeof(buffer)-1] = '\0';
len = sizeof(buffer);
dummy = 0;
- /* on success, len+1 is returned. No idea, if someone depend on this */
+ /* on success, string size including terminating 0 is returned for ansi version */
res = pParseURLFromOutsideSourceA(ParseURL_table[i].url, buffer, &len, &dummy);
/* len does not include the terminating 0, when buffer is large enough */
- ok( res != 0 && len == ParseURL_table[i].len &&
+ ok( res == (ParseURL_table[i].len+1) && len == ParseURL_table[i].len &&
!lstrcmpA(buffer, ParseURL_table[i].newurl),
- "#%d: got %d and %d with '%s' (expected '!=0' and %d with '%s')\n",
- i, res, len, buffer, ParseURL_table[i].len, ParseURL_table[i].newurl);
+ "#%d: got %d and %d with '%s' (expected %d and %d with '%s')\n",
+ i, res, len, buffer, ParseURL_table[i].len+1, ParseURL_table[i].len, ParseURL_table[i].newurl);
/* use the size test only for the first examples */
@@ -308,11 +308,12 @@
/* len is in characters */
len = sizeof(bufferW)/sizeof(bufferW[0]);
dummy = 0;
+ /* on success, 1 is returned for unicode version */
res = pParseURLFromOutsideSourceW(urlW, bufferW, &len, &dummy);
WideCharToMultiByte(CP_ACP, 0, bufferW, -1, bufferA, sizeof(bufferA), NULL, NULL);
- ok( res != 0 && len == ParseURL_table[0].len &&
+ ok( res == 1 && len == ParseURL_table[0].len &&
!lstrcmpA(bufferA, ParseURL_table[0].newurl),
- "got %d and %d with '%s' (expected '!=0' and %d with '%s')\n",
+ "got %d and %d with '%s' (expected 1 and %d with '%s')\n",
res, len, bufferA, ParseURL_table[0].len, ParseURL_table[0].newurl);
Author: akhaldi
Date: Sat Apr 25 10:51:57 2015
New Revision: 67393
URL: http://svn.reactos.org/svn/reactos?rev=67393&view=rev
Log:
[RSAENH_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
Modified:
trunk/rostests/winetests/rsaenh/rsaenh.c
Modified: trunk/rostests/winetests/rsaenh/rsaenh.c
URL: http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/rsaenh/rsaenh.c…
==============================================================================
--- trunk/rostests/winetests/rsaenh/rsaenh.c [iso-8859-1] (original)
+++ trunk/rostests/winetests/rsaenh/rsaenh.c [iso-8859-1] Sat Apr 25 10:51:57 2015
@@ -62,7 +62,7 @@
12,12,16}
};
-static int win2k;
+static int win2k, nt4;
/*
* 1. Take the MD5 Hash of the container name (with an extra null byte)
@@ -200,7 +200,7 @@
hProv = (HCRYPTPROV)INVALID_HANDLE_VALUE;
/* we are using NULL as provider name for RSA_AES provider as the provider
- * names are different in Windows XP and Vista. It's different to what
+ * names are different in Windows XP and Vista. This differs from what
* is defined in the SDK on Windows XP.
* This provider is available on Windows XP, Windows 2003 and Vista. */
@@ -249,7 +249,10 @@
SetLastError(0xdeadbeef);
result = CryptGetProvParam(hProv, PP_SIG_KEYSIZE_INC, (BYTE*)&dwInc, &dwLen, 0);
if (!result && GetLastError() == NTE_BAD_TYPE)
+ {
skip("PP_SIG_KEYSIZE_INC is not supported (win9x or NT)\n");
+ nt4++;
+ }
else
ok(result && dwInc==8, "%08x, %d\n", GetLastError(), dwInc);
@@ -1472,16 +1475,16 @@
result = CryptDecrypt(hKey, 0, TRUE, 0, pbData, &dwDataLen);
ok(result, "%08x\n", GetLastError());
- /* Setting the salt also succeeds... */
+ /* Setting the salt value will not reset the salt length in base or strong providers */
result = CryptSetKeyParam(hKey, KP_SALT, pbData, 0);
ok(result, "setting salt failed: %08x\n", GetLastError());
- /* but the resulting salt length is now zero? */
dwLen = 0;
result = CryptGetKeyParam(hKey, KP_SALT, NULL, &dwLen, 0);
ok(result, "%08x\n", GetLastError());
- ok(dwLen == 0 ||
- broken(dwLen == 11), /* Win9x/WinMe/NT4 */
- "unexpected salt length %d\n", dwLen);
+ if (BASE_PROV || STRONG_PROV)
+ ok(dwLen == 11, "expected salt length 11, got %d\n", dwLen);
+ else
+ ok(dwLen == 0 || broken(nt4 && dwLen == 11), "expected salt length 0, got %d\n", dwLen);
/* What sizes salt can I set? */
salt.pbData = pbData;
for (i=0; i<24; i++)
@@ -1719,16 +1722,16 @@
result = CryptDecrypt(hKey, 0, TRUE, 0, pbData, &dwDataLen);
ok(result, "%08x\n", GetLastError());
- /* Setting the salt also succeeds... */
+ /* Setting the salt value will not reset the salt length in base or strong providers */
result = CryptSetKeyParam(hKey, KP_SALT, pbData, 0);
ok(result, "setting salt failed: %08x\n", GetLastError());
- /* but the resulting salt length is now zero? */
dwLen = 0;
result = CryptGetKeyParam(hKey, KP_SALT, NULL, &dwLen, 0);
ok(result, "%08x\n", GetLastError());
- ok(dwLen == 0 ||
- broken(dwLen == 11), /* Win9x/WinMe/NT4 */
- "unexpected salt length %d\n", dwLen);
+ if (BASE_PROV || STRONG_PROV)
+ ok(dwLen == 11, "expected salt length 11, got %d\n", dwLen);
+ else
+ ok(dwLen == 0 || broken(nt4 && dwLen == 11), "expected salt length 0, got %d\n", dwLen);
/* What sizes salt can I set? */
salt.pbData = pbData;
for (i=0; i<24; i++)