--- np2/win9x/dialog/d_sound.cpp 2003/10/22 14:13:25 1.4 +++ np2/win9x/dialog/d_sound.cpp 2003/10/30 12:45:38 1.6 @@ -5,6 +5,7 @@ #include "strres.h" #include "resource.h" #include "np2.h" +#include "dosio.h" #include "joymng.h" #include "sysmng.h" #include "menu.h" @@ -1071,10 +1072,11 @@ void dialog_sndopt(HWND hWnd) { ZeroMemory(&psh, sizeof(psh)); psh.dwSize = sizeof(PROPSHEETHEADER); - psh.dwFlags = PSH_NOAPPLYNOW; + psh.dwFlags = PSH_NOAPPLYNOW | PSH_USEHICON; psh.hwndParent = hWnd; psh.hInstance = hinst; - psh.nPages = 6; // ver0.29 + psh.hIcon = LoadIcon(hinst, MAKEINTRESOURCE(IDI_ICON2)); + psh.nPages = 6; psh.phpage = hpsp; psh.pszCaption = str_sndopt; PropertySheet(&psh); @@ -1093,13 +1095,17 @@ static const FILESEL s98ui = {s98ui_titl void dialog_s98(HWND hWnd) { BOOL check; -const char *p; + char path[MAX_PATH]; S98_close(); check = FALSE; - p = dlgs_selectwritenum(hWnd, &s98ui, s98ui_file, - bmpfilefolder, sizeof(bmpfilefolder)); - if ((p != NULL) && (S98_open(p) == SUCCESS)) { + file_cpyname(path, bmpfilefolder, sizeof(path)); + file_cutname(path); + file_catname(path, s98ui_file, sizeof(path)); + if ((dlgs_selectwritenum(hWnd, &s98ui, path, sizeof(path))) && + (S98_open(path) == SUCCESS)) { + file_cpyname(bmpfilefolder, path, sizeof(bmpfilefolder)); + sysmng_update(SYS_UPDATEOSCFG); check = TRUE; } xmenu_sets98logging(check);