mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 18:23:07 +00:00
[PSDK][REACTOS] Fix definitions and usage of DWLP_MSGRESULT, DWLP_DLGPROC, and DWLP_USER
- Make sure the DWLP_* values are correct on _WIN64 - Don't use the DWL_* constants, they are not portable. Enforce this by removing them entirely from winuser.h - Make sure Get/SetWindowLong*Ptr* is used and pointers are not truncated to LONG
This commit is contained in:
parent
6cdd1357d6
commit
0182dcd71b
35 changed files with 142 additions and 131 deletions
|
@ -28,6 +28,7 @@
|
|||
#define Unused(x) (x);
|
||||
#endif // __GNUC__
|
||||
|
||||
#if !defined(_WIN64)
|
||||
#ifdef SetWindowLongPtr
|
||||
#undef SetWindowLongPtr
|
||||
inline LONG_PTR SetWindowLongPtr(HWND hWnd, int nIndex, LONG_PTR dwNewLong)
|
||||
|
@ -43,6 +44,7 @@ inline LONG_PTR GetWindowLongPtr(HWND hWnd, int nIndex)
|
|||
return (LONG_PTR)GetWindowLong(hWnd, nIndex);
|
||||
}
|
||||
#endif
|
||||
#endif // !_WIN64
|
||||
|
||||
#pragma push_macro("SubclassWindow")
|
||||
#undef SubclassWindow
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue