Andriy Palamarchuk suggested to discuss this here:
>Juergen, I suggest you to discuss this issue on wine-devel as the problem is
>pretty well defined and I don't know who can handle it.
During initializing a dialog window a WM_GETFONT is send before the dlgInfo is
set properly. Returning a valid HFONT (by GetStockObject()) makes the program
proceed. How can it be fixed properly?
Backtrace:
=>0 0x40658741 (DEFDLG_Proc+0x331(hwnd=0xc0034, msg=0x31, wParam=0x0,
lParam=0x0, dlgInfo=0x0) [defdlg.c:255] in libuser32.dll.so) (ebp=405b5940)
1 0x40658c62 (DefDlgProcW+0x142(hwnd=0xc0034, msg=0x31, wParam=0x0,
lParam=0x0, hwnd=0xc0034) [defdlg.c:430] in libuser32.dll.so) (ebp=405b596c)
2 0x4068172b (WINPROC_wrapper+0x17 in libuser32.dll.so) (ebp=405b5990)
3 0x406817ce (WINPROC_CallWndProc+0x8e(proc=0x40658b20, hwnd=0xc0034,
msg=0x31, wParam=0x0, lParam=0x0) [winproc.c:183] in libuser32.dll.so)
(ebp=405b59c0)
4 0x40687b7b (CallWindowProcW+0x3b(func=0x40658b20, hwnd=0xc0034,
msg=0x31,
wParam=0x0, lParam=0x0) [winproc.c:2815] in libuser32.dll.so) (ebp=405b59e8)
5 0x5f801d93 (MFC42U.DLL.2377+0x24 in C:\WINNT\SYSTEM32\MFC42U.DLL)
(ebp=405b5a08)
6 0x5f8019e8 (MFC42U.DLL.6370+0x39 in C:\WINNT\SYSTEM32\MFC42U.DLL)
(ebp=405b5a24)
7 0x5f80195a (MFC42U.DLL.1108+0x74 in C:\WINNT\SYSTEM32\MFC42U.DLL)
(ebp=405b5a84)
8 0x5f8018e2 (MFC42U.DLL.1571+0x2a in C:\WINNT\SYSTEM32\MFC42U.DLL)
(ebp=405b5aa0)
9 0x5f8018a1 (MFC42U.DLL.1572+0x39 in C:\WINNT\SYSTEM32\MFC42U.DLL)
(ebp=405b5acc)
10 0x4068172b (WINPROC_wrapper+0x17 in libuser32.dll.so) (ebp=405b5af0)
11 0x406817ce (WINPROC_CallWndProc+0x8e(proc=0x5f801868, hwnd=0xc0034,
msg=0x31, wParam=0x0, lParam=0x0) [winproc.c:183] in libuser32.dll.so)
(ebp=405b5b20)
12 0x40687b7b (CallWindowProcW+0x3b(func=0x5f801868, hwnd=0xc0034,
msg=0x31,
wParam=0x0, lParam=0x0) [winproc.c:2815] in libuser32.dll.so) (ebp=405b5b48)
13 0x40697426 (call_window_proc+0xd6(hwnd=0xc0034, msg=0x31, wparam=0x0,
lparam=0x0, unicode=0x1) [message.c:1368] in libuser32.dll.so) (ebp=405b5b98)
14 0x40697fbc (SendMessageTimeoutW+0xdc(hwnd=0xc0034, msg=0x31,
wparam=0x0,
lparam=0x0, flags=0x0, timeout=0xffffffff, res_ptr=0x405b5c1c) [message.c:1736]
in libuser32.dll.so) (ebp=405b5bec)
15 0x40698249 (SendMessageW+0x39(hwnd=0xc0034, msg=0x31, wparam=0x0,
lparam=0x0) [message.c:1818] in libuser32.dll.so) (ebp=405b5c20)
16 0x5f818cad (MFC42U.DLL.6685+0xf in C:\WINNT\SYSTEM32\MFC42U.DLL)
(ebp=405b5c64)
17 0x5f85c2a7 (MFC42U.DLL.4347+0x14 in C:\WINNT\SYSTEM32\MFC42U.DLL)
(ebp=405b5d10)
18 0x5f8207f7 (MFC42U.DLL.2234+0x57 in C:\WINNT\SYSTEM32\MFC42U.DLL)
(ebp=405b5d94)
19 0x5f8202e8 (MFC42U.DLL.6614+0x62 in C:\WINNT\SYSTEM32\MFC42U.DLL)
(ebp=405b5df0)
20 0x5f81f595 (MFC42U.DLL.6613+0x86 in C:\WINNT\SYSTEM32\MFC42U.DLL)
(ebp=405b5e48)
21 0x5f81f290 (MFC42U.DLL.6615+0x3f in C:\WINNT\SYSTEM32\MFC42U.DLL)
(ebp=405b5e84)
22 0x5f81f24c (MFC42U.DLL.2127+0x59 in C:\WINNT\SYSTEM32\MFC42U.DLL)
(ebp=405b5ed8)
23 0x00435634 (ML.exe..text+0x34634 in
F:\Programme\ML\MLSoftWin\ML\ML.exe) (ebp=405b5f04)
24 0x004b8cda (ML.exe..text+0xb7cda in
F:\Programme\ML\MLSoftWin\ML\ML.exe) (ebp=405b5f5c)
25 0x004b8c25 (ML.exe..text+0xb7c25 in
F:\Programme\ML\MLSoftWin\ML\ML.exe) (ebp=405b5fe0)
26 0x5f8019d1 (MFC42U.DLL.6370+0x22 in C:\WINNT\SYSTEM32\MFC42U.DLL)
(ebp=405b6000)
27 0x5f80195a (MFC42U.DLL.1108+0x74 in C:\WINNT\SYSTEM32\MFC42U.DLL)
(ebp=405b6060)
28 0x5f8018e2 (MFC42U.DLL.1571+0x2a in C:\WINNT\SYSTEM32\MFC42U.DLL)
(ebp=405b607c)
29 0x5f8018a1 (MFC42U.DLL.1572+0x39 in C:\WINNT\SYSTEM32\MFC42U.DLL)
(ebp=405b60a8)
30 0x4068172b (WINPROC_wrapper+0x17 in libuser32.dll.so) (ebp=405b60cc)
31 0x406817ce (WINPROC_CallWndProc+0x8e(proc=0x5f801868, hwnd=0xc0034,
msg=0x1, wParam=0x0, lParam=0x405b6554) [winproc.c:183] in libuser32.dll.so)
(ebp=405b60fc)
32 0x40687b7b (CallWindowProcW+0x3b(func=0x5f801868, hwnd=0xc0034,
msg=0x1,
wParam=0x0, lParam=0x405b6554) [winproc.c:2815] in libuser32.dll.so)
(ebp=405b6124)
33 0x40697426 (call_window_proc+0xd6(hwnd=0xc0034, msg=0x1, wparam=0x0,
lparam=0x405b6554, unicode=0x1) [message.c:1368] in libuser32.dll.so)
(ebp=405b6174)
34 0x40697fbc (SendMessageTimeoutW+0xdc(hwnd=0xc0034, msg=0x1,
wparam=0x0,
lparam=0x405b6554, flags=0x0, timeout=0xffffffff, res_ptr=0x405b61f8)
[message.c:1736] in libuser32.dll.so) (ebp=405b61c8)
35 0x40698249 (SendMessageW+0x39(hwnd=0xc0034, msg=0x1, wparam=0x0,
lparam=0x405b6554) [message.c:1818] in libuser32.dll.so) (ebp=405b61fc)
36 0x409e9cee (X11DRV_CreateWindow+0x53e(hwnd=0xc0034, cs=0x405b6554,
unicode=0x1) [window.c:1001] in x11drv.dll.so) (ebp=405b6270)
37 0x4067b0b0 (WIN_CreateWindowEx+0x580(cs=0x405b6554, classAtom=0x8002,
type=0x3) [win.c:1162] in libuser32.dll.so) (ebp=405b6330)
38 0x4067b66b (CreateWindowExW+0x14b(exStyle=0x0, className=0x8002,
windowName=0x6cab8e, style=0x40000040, x=0x0, y=0x0, width=0x446,
height=0x2eb,
parent=0x6009c, menu=0x0, instance=0x400000, data=0x0) [win.c:1377] in
libuser32.dll.so) (ebp=405b6584)
39 0x4065c268 (DIALOG_CreateIndirect+0x408(hInst=0x400000,
dlgTemplate=0x6cabb0, owner=0x6009c, dlgProc=0x5f80557b, param=0x0,
procType=0x3, modal=0x0, hwnd=0x6009c) [dialog.c:817] in libuser32.dll.so)
(ebp=405b6624)
40 0x4065c75f (CreateDialogIndirectParamW+0x2f(hInst=0x400000,
dlgTemplate=0x6cab78, owner=0x6009c, dlgProc=0x5f80557b, param=0x0)
[dialog.c:1011] in libuser32.dll.so) (ebp=405b6654)
41 0x5f817b05 (MFC42U.DLL.2139+0xc9 in C:\WINNT\SYSTEM32\MFC42U.DLL)
(ebp=405b66bc)
42 0x5f85b785 (MFC42U.DLL.2134+0x43 in C:\WINNT\SYSTEM32\MFC42U.DLL)
(ebp=405b6730)
43 0x5f8113ed (MFC42U.DLL.2250+0x47 in C:\WINNT\SYSTEM32\MFC42U.DLL)
(ebp=405b6774)
44 0x004ad8b5 (ML.exe..text+0xac8b5 in
F:\Programme\ML\MLSoftWin\ML\ML.exe) (ebp=405b67c0)
45 0x004adb66 (ML.exe..text+0xacb66 in
F:\Programme\ML\MLSoftWin\ML\ML.exe) (ebp=405b67ec)
46 0x004ad2fe (ML.exe..text+0xac2fe in
F:\Programme\ML\MLSoftWin\ML\ML.exe) (ebp=405b68c4)
47 0x5f801bbc (MFC42U.DLL.5157+0x1c9 in C:\WINNT\SYSTEM32\MFC42U.DLL)
(ebp=405b6944)
48 0x5f8019d1 (MFC42U.DLL.6370+0x22 in C:\WINNT\SYSTEM32\MFC42U.DLL)
(ebp=405b6964)
49 0x5f80195a (MFC42U.DLL.1108+0x74 in C:\WINNT\SYSTEM32\MFC42U.DLL)
(ebp=405b69c4)
50 0x5f8018e2 (MFC42U.DLL.1571+0x2a in C:\WINNT\SYSTEM32\MFC42U.DLL)
(ebp=405b69e0)
51 0x5f8018a1 (MFC42U.DLL.1572+0x39 in C:\WINNT\SYSTEM32\MFC42U.DLL)
(ebp=405b6a0c)
52 0x4068172b (WINPROC_wrapper+0x17 in libuser32.dll.so) (ebp=405b6a30)
53 0x406817ce (WINPROC_CallWndProc+0x8e(proc=0x5f801868, hwnd=0x6009c,
msg=0x902, wParam=0x42047510, lParam=0x0) [winproc.c:183] in libuser32.dll.so)
(ebp=405b6a60)
54 0x40687b7b (CallWindowProcW+0x3b(func=0x5f801868, hwnd=0x6009c,
msg=0x902,
wParam=0x42047510, lParam=0x0) [winproc.c:2815] in libuser32.dll.so)
(ebp=405b6a88)
55 0x40697426 (call_window_proc+0xd6(hwnd=0x6009c, msg=0x902,
wparam=0x42047510, lparam=0x0, unicode=0x1) [message.c:1368] in
libuser32.dll.so) (ebp=405b6ad8)
56 0x40697fbc (SendMessageTimeoutW+0xdc(hwnd=0x6009c, msg=0x902,
wparam=0x42047510, lparam=0x0, flags=0x0, timeout=0xffffffff,
res_ptr=0x405b6b5c) [message.c:1736] in libuser32.dll.so) (ebp=405b6b2c)
57 0x40698249 (SendMessageW+0x39(hwnd=0x6009c, msg=0x902,
wparam=0x42047510,
lparam=0x0) [message.c:1818] in libuser32.dll.so) (ebp=405b6b60)
58 0x004b1932 (ML.exe..text+0xb0932 in
F:\Programme\ML\MLSoftWin\ML\ML.exe) (ebp=405b6ba4)
59 0x5f801bbc (MFC42U.DLL.5157+0x1c9 in C:\WINNT\SYSTEM32\MFC42U.DLL)
(ebp=405b6c24)
60 0x5f8019d1 (MFC42U.DLL.6370+0x22 in C:\WINNT\SYSTEM32\MFC42U.DLL)
(ebp=405b6c44)
61 0x5f80195a (MFC42U.DLL.1108+0x74 in C:\WINNT\SYSTEM32\MFC42U.DLL)
(ebp=405b6ca4)
62 0x5f8018e2 (MFC42U.DLL.1571+0x2a in C:\WINNT\SYSTEM32\MFC42U.DLL)
(ebp=405b6cc0)
63 0x5f8018a1 (MFC42U.DLL.1572+0x39 in C:\WINNT\SYSTEM32\MFC42U.DLL)
(ebp=405b6cec)
64 0x4068172b (WINPROC_wrapper+0x17 in libuser32.dll.so) (ebp=405b6d10)
65 0x406817ce (WINPROC_CallWndProc+0x8e(proc=0x5f801868, hwnd=0x70088,
msg=0x901, wParam=0x4204bed0, lParam=0x0) [winproc.c:183] in libuser32.dll.so)
(ebp=405b6d40)
66 0x40687be7 (CallWindowProcW+0xa7(func=0x41630b68, hwnd=0x70088,
msg=0x901,
wParam=0x4204bed0, lParam=0x0) [winproc.c:2834] in libuser32.dll.so)
(ebp=405b6d68)
67 0x40668b2a (DispatchMessageW+0x13a(msg=0x6c8c94) [message.c:1155] in
libuser32.dll.so) (ebp=405b6dac)
68 0x5f8013e0 (MFC42U.DLL.5303+0x3a in C:\WINNT\SYSTEM32\MFC42U.DLL)
(ebp=006c8c94)
Thanks
Juergen
---
juergen.schmied(a)debitel.net