Timo Kreuzer
05cd3406e7
[USER32] Fix SetWindowWord/Long
...
These must use the corresponding NtUserSetWindowWord/Long function and cannot use NtUserSetWindowLongPtr, otherwise the function can fail, when there is only space for a LONG, but not for a LONG_PTR at the specified offset.
2023-05-25 18:56:02 +03:00
Hermès Bélusca-Maïto
44e1d87596
[USER32] RegisterClassExWOWW/ExA: NULL or IS_ATOM class are treated the same. ( #5291 )
...
CORE-18978
Fixes NULL pointer access when e.g. class.lpszClassName == NULL and
the class is registered. The RegisterClass(ExA/W/...) should return 0
instead of throwing an invalid access exception.
However, providing an invalid pointer will trigger a crash.
2023-05-21 19:35:19 +02:00
Hermès Bélusca-Maïto
f172f98a10
[USER32] Minor formatting and dead-code removal.
...
Remove dead code CreateSmallIcon from commit e0968c78
(r18764);
see also b243445c
(r60592).
2023-05-21 19:28:53 +02:00
Katayama Hirofumi MZ
93955f37de
[NTUSER][USER32] Define NtUserSetWindowLongPtr for non-Win64 ( #4612 )
...
- Add NtUserSetWindowLongPtr macro on non-Win64.
- Use NtUserSetWindowLongPtr instead of NtUserSetWindowLong.
CORE-11700
2022-08-17 17:23:40 +09:00
James Tabor
9cff384c22
[User32] Add Back Break with Error Message
...
Add back missing break. See CORE-17856.
2021-11-27 11:35:42 -06:00
Timo Kreuzer
5d8e834897
[REACTOS] Fix a number of MSVC warnings
2021-07-23 22:03:48 +02:00
Joachim Henze
feb7df42b4
[WIN32SS] Fix a typo in dbg print
2020-02-22 19:40:52 +01:00
Timo Kreuzer
27c3a4d26a
[USER32] Fix copying from WNDCLASS to WNDCLASSEX
...
This must be done field by field, since the alignment of the structures is different on _WIN64
2018-08-17 22:13:18 +02:00
Joachim Henze
083c3d992b
[USER32] Fix compilation when USE_VERSIONED_CLASSES is not defined
...
Variable 'Status' would be set but not used otherwise in this case.
This commit will not fix or improve CORE-13278,
but was spotted when having a look at that.
2018-04-12 17:57:38 +02:00
Timo Kreuzer
173971d947
[WIN32K] Implement NtUserSetWindowLongPtr for 64 bit builds
...
Also fix return type of NtUserQueryWindow and type of WND::dwUserData and the value for bAnsi in SetWindowLongPtrA
2018-02-19 22:36:36 +01:00
Giannis Adamopoulos
bd193c4534
[USER32] Stop hiding exceptions left and right
2018-01-15 12:36:45 +02:00
Giannis Adamopoulos
c5db5399dc
[USER32] Implement the index -1 for GetWindowLong which returns a pointer to WW
...
We don't have this struct but WND already contains the same fields in the right
order so we can just return the pointer to the first one.
The meaning of the -1 index was found here: http://www.geoffchappell.com/studies/windows/win32/user32/structs/wnd/index.htm
2017-12-25 00:12:45 +02:00
Amine Khaldi
3d93998d6e
[USER32] Add wine/debug.h to the PCH and remove an unneeded wine/unicode.h inclusion.
2017-12-23 23:42:40 +01:00
Colin Finck
c2c66aff7d
Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys.
2017-10-03 07:45:34 +00:00