Fix buffer length calculation in InitializeGenericSF()
Rein Klazes
rklazes at xs4all.nl
Tue Jul 9 03:51:32 CDT 2002
Hi,
Fix for heap corruption in "KPN CDfoongids 2002" setup (VISE
installer).
Changelog:
dlls/shell32 : shlfolder.c
Fix buffer length calculation in InitializeGenericSF()
Rein.
--
Rein Klazes
rklazes at xs4all.nl
-------------- next part --------------
--- wine/dlls/shell32/shlfolder.c Wed Jul 3 07:08:51 2002
+++ mywine/dlls/shell32/shlfolder.c Tue Jul 9 10:18:24 2002
@@ -503,7 +503,7 @@
sPos = sNewPath;
}
_ILSimpleGetText(pidlFolder, sPos, MAX_PATH - (sPos - sNewPath));
- if(!((sf->sPathRoot = SHAlloc(strlen(sNewPath+1))))) return E_OUTOFMEMORY;
+ if(!((sf->sPathRoot = SHAlloc(strlen(sNewPath)+1)))) return E_OUTOFMEMORY;
strcpy(sf->sPathRoot, sNewPath);
TRACE("-- %s\n", sNewPath);
}
More information about the wine-patches
mailing list