[Bug 2785] Crash in wininet when accessing CHM files

Wine Bugs wine-bugs at winehq.org
Wed Mar 9 03:17:13 CST 2005


http://bugs.winehq.org/show_bug.cgi?id=2785





------- Additional Comments From bon at elektron.ikp.physik.tu-darmstadt.de  2005-09-03 03:17 -------
At least for the log you show, every return value of
GetUrlCacheEntryInfoExW(...,0,0,...,0x100) is NULL, meaning failure. Is there
any call that succeeds (retval != 00000000)? Otherwise simply rejecting the call
when the third arument is a null pointer might help

Perhaps try something like
diff -u -w -r1.24 urlcache.c
--- wine/dlls/wininet/urlcache.c        8 Feb 2005 13:43:09 -0000       1.24
+++ wine/dlls/wininet/urlcache.c        9 Mar 2005 09:16:14 -0000
@@ -1135,6 +1135,8 @@
 
     TRACE("(%s, %p, %p)\n", debugstr_a(lpszUrlName), lpCacheEntryInfo,
lpdwCacheEntryInfoBufferSize);
 
+    if (lpdwCacheEntryInfoBufferSize == 0)
+        return FALSE;
     if (!URLCacheContainers_FindContainerA(lpszUrlName, &pContainer))
         return FALSE;


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list