--- mstools/samples/showdib/dlgopen.c 2018/08/09 18:20:01 1.1 +++ mstools/samples/showdib/dlgopen.c 2018/08/09 18:20:44 1.1.1.2 @@ -106,7 +106,7 @@ HFILE APIENTRY DlgOpenFile ( /* Show the dialog box */ lpProc = MakeProcInstance ((FARPROC)DlgfnOpen, hInstance); - fh = DialogBox (hInstance, "DlgOpenBox", hwndParent, (WNDPROC)lpProc); + fh = DialogBox (hInstance, "DlgOpenBox", hwndParent, lpProc); FreeProcInstance (lpProc); if (fh != 0){