From 319a929a20105222d407c263307473448215b1fc Mon Sep 17 00:00:00 2001 From: SarahW Date: Sun, 4 Mar 2018 13:58:02 +0000 Subject: [PATCH] Changed wx_sendmessage() param1 to LONG_PARAM. Fixes crashed on 64-bit builds. --- src/wx-utils.cc | 2 +- src/wx-utils.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wx-utils.cc b/src/wx-utils.cc index c13cce6..db4c624 100644 --- a/src/wx-utils.cc +++ b/src/wx-utils.cc @@ -273,7 +273,7 @@ int wx_dlgdirselectex(void* window, LONG_PARAM path, int count, int id) return FALSE; } -int wx_sendmessage(void* window, int type, INT_PARAM param1, LONG_PARAM param2) +int wx_sendmessage(void* window, int type, LONG_PARAM param1, LONG_PARAM param2) { switch (type) { diff --git a/src/wx-utils.h b/src/wx-utils.h index fd00931..945d54f 100644 --- a/src/wx-utils.h +++ b/src/wx-utils.h @@ -35,7 +35,7 @@ extern "C" { int wx_dlgdirselectex(void* window, LONG_PARAM path, int count, int id); void wx_setwindowtitle(void* window, char* s); - int wx_sendmessage(void* window, int type, INT_PARAM param1, LONG_PARAM param2); + int wx_sendmessage(void* window, int type, LONG_PARAM param1, LONG_PARAM param2); void* wx_getdlgitem(void* window, int id); void wx_setdlgitemtext(void* window, int id, char* str); void wx_enablewindow(void* window, int enabled);