@@ -338,8 +338,8 @@ LRESULT CALLBACK Config(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
338338 case IDC_BROWSE:
339339 memset (&ofn,0 ,sizeof (ofn));
340340 ofn.lStructSize = sizeof (OPENFILENAME) ;
341- ofn.hwndOwner = NULL ;
342- ofn.lpstrFilter = " Disk Rom Images\0 *.rom\0\0 " ; // filter ROM images
341+ ofn.hwndOwner = GetTopWindow ( NULL ) ;
342+ ofn.lpstrFilter = " Disk Rom Images\0 *.rom;*.bin \0\0 " ; // filter ROM images
343343 ofn.nFilterIndex = 1 ; // current filter index
344344 ofn.lpstrFile = TempRomFileName ; // contains full path and filename on return
345345 ofn.nMaxFile = MAX_PATH; // sizeof lpstrFile
@@ -381,11 +381,11 @@ void Load_Disk(unsigned char disk)
381381 CreateFlag=1 ;
382382 memset (&ofn,0 ,sizeof (ofn));
383383 ofn.lStructSize = sizeof (OPENFILENAME) ;
384- ofn.hwndOwner = NULL ;
384+ ofn.hwndOwner = GetTopWindow ( NULL ) ;
385385 ofn.Flags = OFN_HIDEREADONLY;
386386 ofn.hInstance = GetModuleHandle (0 );
387- ofn. lpstrDefExt = " dsk" ;
388- ofn.lpstrFilter = " Disk Images\0 *.DSK ;*.OS9 \0\0 " ; // filter string "Disks\0*.DSK\0\0";
387+ ofn.lpstrDefExt = " dsk" ;
388+ ofn.lpstrFilter = " Disk Images\0 *.dsk ;*.os9 \0\0 " ; // filter string "Disks\0*.DSK\0\0";
389389 ofn.nFilterIndex = 0 ; // current filter index
390390 ofn.lpstrFile = TempFileName ; // contains full path and filename on return
391391 ofn.nMaxFile = MAX_PATH; // sizeof lpstrFile
0 commit comments