mpr: Fix bug in ProviderOrder comma processing in wnetInit().

This commit is contained in:
Dan Kegel 2006-08-19 21:45:10 -07:00 committed by Alexandre Julliard
parent cba7238364
commit 50ed26c358
1 changed files with 4 additions and 2 deletions

View File

@ -260,8 +260,10 @@ void wnetInit(HINSTANCE hInstDll)
for (ptr = providers, numToAllocate = 1; ptr; ) for (ptr = providers, numToAllocate = 1; ptr; )
{ {
ptr = strchrW(ptr, ','); ptr = strchrW(ptr, ',');
if (ptr) if (ptr) {
numToAllocate++; numToAllocate++;
ptr++;
}
} }
providerTable = providerTable =
HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
@ -287,7 +289,7 @@ void wnetInit(HINSTANCE hInstDll)
ptrPrev = ptr; ptrPrev = ptr;
ptr = strchrW(ptr, ','); ptr = strchrW(ptr, ',');
if (ptr) if (ptr)
*ptr = '\0'; *ptr++ = '\0';
_tryLoadProvider(ptrPrev); _tryLoadProvider(ptrPrev);
} }
} }