shlwapi: Fixed incorrect buffer size.

This commit is contained in:
Marcus Meissner 2012-09-25 08:13:02 +02:00 committed by Alexandre Julliard
parent 6ebf13960b
commit 73dfc3d462
1 changed files with 1 additions and 1 deletions

View File

@ -1062,7 +1062,7 @@ static void test_UrlCanonicalizeW(void)
BOOL choped;
int pos;
MultiByteToWideChar(CP_ACP, 0, "http://www.winehq.org/X", -1, szUrl, sizeof(szUrl));
MultiByteToWideChar(CP_ACP, 0, "http://www.winehq.org/X", -1, szUrl, sizeof(szUrl)/sizeof(szUrl[0]));
pos = lstrlenW(szUrl) - 1;
szUrl[pos] = i;
urllen = INTERNET_MAX_URL_LENGTH;