https://git.reactos.org/?p=reactos.git;a=commitdiff;h=03adec81414abb53e589e…
commit 03adec81414abb53e589ecd9061042b9ca2104c1
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Sat Aug 10 15:40:32 2019 +0900
Commit: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
CommitDate: Sat Aug 10 15:40:32 2019 +0900
[WIN32SS][NTUSER] Fix popup menu freezing
---
win32ss/user/ntuser/menu.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/win32ss/user/ntuser/menu.c b/win32ss/user/ntuser/menu.c
index eef10076d1c..b2e7efe2d2b 100644
--- a/win32ss/user/ntuser/menu.c
+++ b/win32ss/user/ntuser/menu.c
@@ -2803,7 +2803,8 @@ static BOOL MENU_InitPopup( PWND pWndOwner, PMENU menu, UINT flags
)
if (flags & TPM_LAYOUTRTL || pWndOwner->ExStyle & WS_EX_LAYOUTRTL)
ex_style |= WS_EX_LAYOUTRTL;
- RtlInitUnicodeString(&ClassName, WC_MENU);
+ ClassName.Buffer = WC_MENU;
+ ClassName.Length = 0;
RtlZeroMemory(&WindowName, sizeof(WindowName));
RtlZeroMemory(&Cs, sizeof(Cs));