[Bug 13737] Word 2003 crashes on opening specific file

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Jun 21 04:07:13 CDT 2008


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





--- Comment #1 from Lei Zhang <thestig at google.com>  2008-06-17 18:35:56 ---
Can you attach the console output from the crash?


--- Comment #2 from Anastasius Focht <focht at gmx.net>  2008-06-21 04:07:12 ---
Created an attachment (id=14231)
 --> (http://bugs.winehq.org/attachment.cgi?id=14231)
Patch to fix crash in WNetGetResourceInformationW if provider table is empty

Hello,

seems WNetGetResourceInformationW() doesn't check if provider table is empty
due to missing registry data.
WNetGetResourceInformationA() handles this case gracefully so
WNetGetResourceInformationW() should to the same if directly called. 

--- snip wine trace ---
..
002f:Call KERNEL32.LoadLibraryExW(00323860 L"MPR.dll",00000000,00000000)
ret=30cbf768
002f:Ret  KERNEL32.LoadLibraryExW() retval=60990000 ret=30cbf768
..
002f:Call advapi32.RegQueryValueExW(00000010,00440408
L"EnableShellDataCaching",00000000,00323c94,00323ccc,00323ca4) ret=30cb93d5
002f:Ret  advapi32.RegQueryValueExW() retval=00000002 ret=30cb93d5
..
002f:Call mpr.WNetGetResourceInformationW(00323d2c,00440008,00323d50,00323d4c)
ret=314c1ccb
002f:trace:mpr:WNetGetResourceInformationW (0x323d2c, 0x440008, 0x323d50,
0x323d4c)
002f:trace:seh:raise_exception code=c0000005 flags=0 addr=0x6099747b
002f:trace:seh:raise_exception  info[0]=00000000
002f:trace:seh:raise_exception  info[1]=00000008
002f:trace:seh:raise_exception  eax=00000054 ebx=6099e108 ecx=00000000
edx=00000000 esi=00000000 edi=00323c50
002f:trace:seh:raise_exception  ebp=00323c38 esp=00323c00 cs=0073 ds=007b
es=007b fs=0033 gs=003b flags=00010246
..
--- snip wine trace ---

Attached patch fixes this, document loads successfully.

Regards


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list