Dan Kegel : mpr: Fix bug in ProviderOrder comma processing in
wnetInit().
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Aug 21 05:58:44 CDT 2006
Module: wine
Branch: master
Commit: 50ed26c358e74a0380c9514792e0de6fb844ce27
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=50ed26c358e74a0380c9514792e0de6fb844ce27
Author: Dan Kegel <dank at kegel.com>
Date: Sat Aug 19 21:45:10 2006 -0700
mpr: Fix bug in ProviderOrder comma processing in wnetInit().
---
dlls/mpr/wnet.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/mpr/wnet.c b/dlls/mpr/wnet.c
index 804b457..c099c68 100644
--- a/dlls/mpr/wnet.c
+++ b/dlls/mpr/wnet.c
@@ -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);
}
}
More information about the wine-cvs
mailing list