[Bug 27177] advapi32: CRYPT_UnicodeToANSI use signed int for string size

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Aug 4 20:35:15 CDT 2011


http://bugs.winehq.org/show_bug.cgi?id=27177

--- Comment #9 from Alexandex Yastrebov <menone7 at gmail.com> 2011-08-04 20:35:13 CDT ---
This code should work incorrectly even in Wine, but it's the same bug, signed
int != DWORD.

char* prov = "Microsoft Base Cryptographic Provider v1.0";
DWORD cbProvName = 0xFFFFFFFF; /* -1 
See http://source.winehq.org/source/dlls/advapi32/crypt.c#L130
*/
DWORD dwProvType;
char szProvName[128];
CryptEnumProvidersA(0, NULL, 0, &dwProvType, szProvName, &cbProvName);

ok(!strcmp(szProvName, prov), "expected %s, got %s\n", prov, szProvName);

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list