windows: Change wParam size to 64 bits 76/238576/1
authorWander Lairson Costa <wander.lairson@gmail.com>
Tue, 14 Jul 2020 15:18:55 +0000 (12:18 -0300)
committerVictor Cebollada <v.cebollada@samsung.com>
Wed, 15 Jul 2020 08:05:04 +0000 (09:05 +0100)
The wParam message parameter is used to send the callback object pointer
to WM_WIN_CALLBACK messages. As it is fixed as a 32 bit value in DALi,
when running on 64 bits systems it sends an invalid pointer to message
receiver.

Change-Id: I5a00e3e1729098c2b5b71e68d614a2ddc0fc51cb

dali/internal/window-system/windows/platform-implement-win.cpp
dali/internal/window-system/windows/platform-implement-win.h

index 13932b5..65d76b4 100755 (executable)
@@ -138,7 +138,7 @@ void WindowImpl::SetListener( CallbackBase *callback )
 
 bool WindowImpl::PostWinMessage(
   _In_ uint32_t Msg,
-  _In_ uint32_t wParam,
+  _In_ uint64_t wParam,
   _In_ uint64_t lParam )
 {
   return (bool)PostMessage( reinterpret_cast<HWND>( mHWnd ), Msg, wParam, lParam );
@@ -216,7 +216,7 @@ void WindowImpl::SetWinProc()
 
 bool PostWinThreadMessage(
   _In_ uint32_t Msg,
-  _In_ uint32_t wParam,
+  _In_ uint64_t wParam,
   _In_ uint64_t lParam,
   _In_ uint64_t threadID/* = -1*/ )
 {
index 7f1fe0a..e84dce7 100755 (executable)
@@ -39,7 +39,7 @@ namespace WindowsPlatformImplementation
 \r
 bool PostWinThreadMessage(\r
     _In_ uint32_t Msg,\r
-    _In_ uint32_t wParam,\r
+    _In_ uint64_t wParam,\r
     _In_ uint64_t lParam,\r
     _In_ uint64_t threadID = -1 );\r
 \r
@@ -83,7 +83,7 @@ public:
 \r
   bool PostWinMessage(\r
     _In_ uint32_t Msg,\r
-    _In_ uint32_t wParam,\r
+    _In_ uint64_t wParam,\r
     _In_ uint64_t lParam );\r
 \r
   int32_t GetEdgeWidth();\r