Module: wine Branch: master Commit: 50ed26c358e74a0380c9514792e0de6fb844ce27 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=50ed26c358e74a0380c95147...
Author: Dan Kegel dank@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); } }