--- np2/win9x/dialog/d_disk.cpp 2005/04/05 09:12:24 1.15 +++ np2/win9x/dialog/d_disk.cpp 2006/12/24 00:52:30 1.16 @@ -351,7 +351,7 @@ const OEMCHAR *ext; if (!dlgs_selectwritefile(hWnd, &newdiskui, path, NELEMENTS(path))) { return; } - hinst = (HINSTANCE)GetWindowLong(hWnd, GWL_HINSTANCE); + hinst = GetWindowInst(hWnd); ext = file_getext(path); if (!file_cmpname(ext, str_thd)) { hddsize = 0;