Fix one more issue with 64bits windows

This commit is contained in:
rdb 2009-07-26 16:35:02 +00:00
parent e2c01a284f
commit c7e10f33a5

View File

@ -152,11 +152,11 @@ void MaxEggImporter::ShowAbout(HWND hWnd)
static INT_PTR CALLBACK ImportDlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
MaxEggImporter *imp = (MaxEggImporter*)GetWindowLong(hWnd,GWL_USERDATA);
MaxEggImporter *imp = (MaxEggImporter*) GetWindowLongPtr(hWnd, GWLP_USERDATA);
switch (msg) {
case WM_INITDIALOG:
imp = (MaxEggImporter*)lParam;
SetWindowLong(hWnd,GWL_USERDATA,lParam);
SetWindowLongPtr(hWnd, GWLP_USERDATA, lParam);
CenterWindow(hWnd, GetParent(hWnd));
CheckDlgButton(hWnd, IDC_MERGE, imp->_merge);
CheckDlgButton(hWnd, IDC_IMPORTMODEL, imp->_importmodel);