--- np2/win9x/dialog/d_disk.cpp 2006/12/24 00:52:30 1.16 +++ np2/win9x/dialog/d_disk.cpp 2007/01/08 07:52:01 1.17 @@ -351,7 +351,7 @@ const OEMCHAR *ext; if (!dlgs_selectwritefile(hWnd, &newdiskui, path, NELEMENTS(path))) { return; } - hinst = GetWindowInst(hWnd); + hinst = (HINSTANCE)GetWindowLongPtr(hWnd, GWLP_HINSTANCE); ext = file_getext(path); if (!file_cmpname(ext, str_thd)) { hddsize = 0;