From c7e10f33a55213da9625a46062c1fd0bd11a5e50 Mon Sep 17 00:00:00 2001 From: rdb Date: Sun, 26 Jul 2009 16:35:02 +0000 Subject: [PATCH] Fix one more issue with 64bits windows --- pandatool/src/maxprogs/maxEggImport.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandatool/src/maxprogs/maxEggImport.cxx b/pandatool/src/maxprogs/maxEggImport.cxx index af154ee611..eeeb1eda64 100755 --- a/pandatool/src/maxprogs/maxEggImport.cxx +++ b/pandatool/src/maxprogs/maxEggImport.cxx @@ -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);