summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/nsplugin/source/npshell.cxx4
-rw-r--r--extensions/source/nsplugin/source/so_msg.hxx4
2 files changed, 6 insertions, 2 deletions
diff --git a/extensions/source/nsplugin/source/npshell.cxx b/extensions/source/nsplugin/source/npshell.cxx
index f9d39f674607..644222d12df4 100644
--- a/extensions/source/nsplugin/source/npshell.cxx
+++ b/extensions/source/nsplugin/source/npshell.cxx
@@ -506,7 +506,7 @@ NPP_New(NPMIMEType pluginType,
This->fWindow = (NPWindow*)NPN_MemAlloc(sizeof(NPWindow));
memset(This->fWindow, 0, sizeof (NPWindow));
This->fMode = mode;
- #endif //end of WNT
+#endif //end of WNT
PLUGIN_MSG msg;
memset((char*)&msg, 0, sizeof(PLUGIN_MSG));
msg.msg_id = SO_NEW_INSTANCE;
@@ -823,7 +823,7 @@ NPP_StreamAsFile(NPP instance, NPStream *stream, const char* fname)
sprintf(msg.url, "file://%s", localPathNew);
#endif //end of UNIX
#ifdef WNT
- msg.wnd_id =(int)(This->fhWnd);
+ msg.wnd_id =(plugin_Int32)(This->fhWnd);
sprintf(msg.url, "file:///%s", localPathNew);
DosToUnixPath(msg.url);
#endif //endof WNT
diff --git a/extensions/source/nsplugin/source/so_msg.hxx b/extensions/source/nsplugin/source/so_msg.hxx
index 8a539ed72a87..419dd49053e4 100644
--- a/extensions/source/nsplugin/source/so_msg.hxx
+++ b/extensions/source/nsplugin/source/so_msg.hxx
@@ -39,7 +39,11 @@ enum msg_type
SO_PRINT // 6
};
+#ifdef _WIN64
+#define plugin_Int32 unsigned __int64
+#else
#define plugin_Int32 unsigned long int
+#endif
typedef struct _PLUGIN_MSG {
plugin_Int32 msg_id;