secur32: Fix possible crash while loading SSP providers from registry.

This commit is contained in:
Zhangrong Huang 2007-12-20 23:29:23 +08:00 committed by Alexandre Julliard
parent 0e4f8d1e2c
commit 26bc15a811
1 changed files with 2 additions and 1 deletions

View File

@ -567,8 +567,9 @@ static void SECUR32_initializeProviders(void)
{
WCHAR *ptr;
size = size / sizeof(WCHAR);
for (ptr = securityPkgNames;
ptr < (PWSTR)((PBYTE)securityPkgNames + size); )
ptr < securityPkgNames + size; )
{
WCHAR *comma;