--- np2/win9x/dialog/d_disk.cpp 2005/04/05 09:12:24 1.15 +++ 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 = (HINSTANCE)GetWindowLong(hWnd, GWL_HINSTANCE); + hinst = (HINSTANCE)GetWindowLongPtr(hWnd, GWLP_HINSTANCE); ext = file_getext(path); if (!file_cmpname(ext, str_thd)) { hddsize = 0;