--- a/ooDialog/trunk/ooDialog/oodMessaging.cpp
+++ b/ooDialog/trunk/ooDialog/oodMessaging.cpp
@@ -481,7 +481,7 @@
             if ( setPropSheetHook(pcpsd) )
             {
                 SetLastError(0);
-                INT_PTR ret = PropertySheet((PROPSHEETHEADER *)wParam);
+                intptr_t ret = PropertySheet((PROPSHEETHEADER *)wParam);
                 oodSetSysErrCode(pcpbd->dlgProcContext);
                 ReplyMessage((LRESULT)ret);
             }