Commit 50ed26c3 authored by Dan Kegel's avatar Dan Kegel Committed by Alexandre Julliard

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

parent cba72383
......@@ -260,8 +260,10 @@ void wnetInit(HINSTANCE hInstDll)
for (ptr = providers, numToAllocate = 1; ptr; )
{
ptr = strchrW(ptr, ',');
if (ptr)
if (ptr) {
numToAllocate++;
ptr++;
}
}
providerTable =
HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
......@@ -287,7 +289,7 @@ void wnetInit(HINSTANCE hInstDll)
ptrPrev = ptr;
ptr = strchrW(ptr, ',');
if (ptr)
*ptr = '\0';
*ptr++ = '\0';
_tryLoadProvider(ptrPrev);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment