Browse Source

Fix one more issue with 64bits windows

rdb 16 years ago
parent
commit
c7e10f33a5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      pandatool/src/maxprogs/maxEggImport.cxx

+ 2 - 2
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);