mpr: Fix bug in ProviderOrder comma processing in wnetInit().
This commit is contained in:
parent
cba7238364
commit
50ed26c358
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue