--- np2/win9x/dialog/d_serial.cpp 2006/12/24 00:52:30 1.15 +++ np2/win9x/dialog/d_serial.cpp 2007/01/08 07:52:01 1.16 @@ -641,7 +641,7 @@ void dialog_serial(HWND hWnd) { PROPSHEETHEADER psh; HPROPSHEETPAGE hpsp[4]; - hinst = GetWindowInst(hWnd); + hinst = (HINSTANCE)GetWindowLongPtr(hWnd, GWLP_HINSTANCE); ZeroMemory(&psp, sizeof(psp)); psp.dwSize = sizeof(PROPSHEETPAGE);