Use uint64_t instead of LPARAM
LPARAM is defined to differnt types on differnt machines with different SDKs, so there is no way to represent it on all platforms safely, using uint64_t seems to be the only safe choice.
This commit is contained in:
parent
5fd310c75f
commit
b86267aa3b
4 changed files with 7 additions and 15 deletions
|
@ -467,8 +467,9 @@ void NativeWindow::NotifyWindowExecuteWindowsCommand(
|
|||
#if defined(OS_WIN)
|
||||
void NativeWindow::NotifyWindowMessage(UINT message, WPARAM w_param,
|
||||
LPARAM l_param) {
|
||||
FOR_EACH_OBSERVER(NativeWindowObserver, observers_,
|
||||
OnWindowMessage(message, w_param, l_param));
|
||||
FOR_EACH_OBSERVER(
|
||||
NativeWindowObserver, observers_,
|
||||
OnWindowMessage(message, w_param, static_cast<uint64_t>(l_param)));
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue