hi, This fixes a crash in Paint Shop Pro 7. About GetNextDlgTabItem() msdn says: ".... If no such control exists, the function returns hCtl" Changelog: windows : dialog.c If GetNextDlgTabItem() cannot find any next control, return the handle of the original control. Rein. -- Rein Klazes rklazes@xxxxxxxxx
--- wine/windows/dialog.c 2003-10-06 23:03:32.000000000 +0200 +++ mywine/windows/dialog.c 2003-11-05 12:11:01.000000000 +0100 @@ -1476,7 +1476,7 @@ if(!retWnd) retWnd = DIALOG_GetNextTabItem(hwndMain,hwndMain,NULL,fPrevious ); } - return retWnd; + return retWnd ? retWnd : hwndDlg; } /***********************************************************************