mirror of
https://github.com/reactos/reactos.git
synced 2024-10-14 21:25:14 +00:00
The menu names are on the user heaps now
svn path=/trunk/; revision=27943
This commit is contained in:
parent
03f66e49b1
commit
7bf577c9ba
|
@ -1961,8 +1961,7 @@ NtUserGetClassLong(IN HWND hWnd,
|
|||
|
||||
if (Ret != 0 && Offset == GCLP_MENUNAME && Window->Class->MenuNameIsString)
|
||||
{
|
||||
Ret = (ULONG_PTR)DesktopHeapAddressToUser(Window->Class->Desktop,
|
||||
(PVOID)Ret);
|
||||
Ret = (ULONG_PTR)UserHeapAddressToUser((PVOID)Ret);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2196,10 +2195,9 @@ InvalidParameter:
|
|||
|
||||
if (Class->MenuName != NULL && Class->MenuNameIsString)
|
||||
{
|
||||
lpWndClassEx->lpszMenuName = DesktopHeapAddressToUser(Class->Desktop,
|
||||
(Ansi ?
|
||||
lpWndClassEx->lpszMenuName = UserHeapAddressToUser(Ansi ?
|
||||
(PVOID)Class->AnsiMenuName :
|
||||
(PVOID)Class->MenuName));
|
||||
(PVOID)Class->MenuName);
|
||||
}
|
||||
|
||||
/* Undocumented behavior! Return the class atom as a BOOL! */
|
||||
|
|
Loading…
Reference in a new issue