diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2020-03-02 11:04:32 +0000 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2020-03-02 11:12:54 +0000 |
commit | f6e3e9238bb5cf7fe44c3c845be286a3314ed905 (patch) | |
tree | 4bd9a17a425970b31a822fb02dd1ab99c7ae8107 | |
parent | ffe0e5cf33feee7672e5f4281f0c0b0ff66bddda (diff) | |
download | ghostpdl-f6e3e9238bb5cf7fe44c3c845be286a3314ed905.tar.gz |
Fix 64bit non-console windows build.
The creation of the text window was truncating the pointer to
long (32bit) size. No idea how we've been getting away with this
in the past. I can only assume this has been exposed by
differences in the runtime lib with vs2019 as compared to
earlier versions.
-rw-r--r-- | psi/dwtext.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/psi/dwtext.c b/psi/dwtext.c index f236b5bd0..f690374de 100644 --- a/psi/dwtext.c +++ b/psi/dwtext.c @@ -914,9 +914,9 @@ WndTextProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) * initializes it here. */ tw = (TW *)(((CREATESTRUCT FAR *)lParam)->lpCreateParams); - SetWindowLong(hwnd, 0, (LONG)tw); + SetWindowLongPtr(hwnd, 0, (LONG_PTR)tw); } - tw = (TW *)GetWindowLong(hwnd, 0); + tw = (TW *)GetWindowLongPtr(hwnd, 0); switch(message) { case WM_SYSCOMMAND: |