summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Lang <gsview@ghostgum.com.au>2001-04-06 08:36:02 +0000
committerRussell Lang <gsview@ghostgum.com.au>2001-04-06 08:36:02 +0000
commit073f2c86b91ee94724333b671b3bb195141e3a35 (patch)
treef13c84cd4d92d0a439bbc72a91654cccd4f0645d
parentfc1b5664fa57d58b3447ce4dc7bb8ca9a8220562 (diff)
downloadghostpdl-073f2c86b91ee94724333b671b3bb195141e3a35.tar.gz
Fix: Apparently Japanese Windows uses WM_USER+1 internally
and conflicts with gswin32c messages starting from WM_USER+1. So gswin32c messages are moved to WM_USER+101 range. Fix from Akira Kakuto git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@1381 a1074d23-0009-0410-80fe-cf8c14f379e6
-rw-r--r--gs/src/dwmainc.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/gs/src/dwmainc.c b/gs/src/dwmainc.c
index f82f9cf32..c5e166542 100644
--- a/gs/src/dwmainc.c
+++ b/gs/src/dwmainc.c
@@ -84,13 +84,15 @@ gsdll_stderr(void *instance, const char *str, int len)
/* is running Ghostscript and blocks on stdin. */
/* We notify second thread of events using PostThreadMessage()
- * with the following messages
+ * with the following messages. Apparently Japanese Windows sends
+ * WM_USER+1 with lParam == 0 and crashes. So we use WM_USER+101.
+ * Fix from Akira Kakuto
*/
-#define DISPLAY_OPEN WM_USER+1
-#define DISPLAY_CLOSE WM_USER+2
-#define DISPLAY_SIZE WM_USER+3
-#define DISPLAY_SYNC WM_USER+4
-#define DISPLAY_PAGE WM_USER+5
+#define DISPLAY_OPEN WM_USER+101
+#define DISPLAY_CLOSE WM_USER+102
+#define DISPLAY_SIZE WM_USER+103
+#define DISPLAY_SYNC WM_USER+104
+#define DISPLAY_PAGE WM_USER+105
/*
#define DISPLAY_DEBUG
@@ -245,7 +247,9 @@ int display_update(void *handle, void *device,
return 0;
}
+/*
#define DISPLAY_DEBUG_USE_ALLOC
+*/
#ifdef DISPLAY_DEBUG_USE_ALLOC
/* This code isn't used, but shows how to use this function */
void *display_memalloc(void *handle, void *device, unsigned long size)