mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
[SDK:ATL] Fix the size of the ATL_WNDCLASSINFOW::m_szAutoName member according to the actual MS-compatible auto-generated window class name.
The autogenerated name has the format:
"ATL:<hexadecimal_digits_of_pointer><NULL-terminator>"
and the number of hex digits in 0xABCD1234 (for 32-bit == 4-byte)
pointers (without the '0x') is 8 == 4*2, and for 64-bit == 8-byte
pointers (e.g. 0xABCDEF0123456789) is 16 == 8*2.
This commit is contained in:
@@ -1893,7 +1893,7 @@ struct _ATL_WNDCLASSINFOW
|
||||
LPCWSTR m_lpszCursorID;
|
||||
BOOL m_bSystemCursor;
|
||||
ATOM m_atom;
|
||||
WCHAR m_szAutoName[5 + sizeof(void *)];
|
||||
WCHAR m_szAutoName[sizeof("ATL:") + sizeof(void *) * 2]; // == 4 characters + NULL + number of hexadecimal digits describing a pointer.
|
||||
|
||||
ATOM Register(WNDPROC *p)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user