mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
parent
9285bd19de
commit
1a4732703c
1 changed files with 4 additions and 1 deletions
|
@ -1841,13 +1841,16 @@ InternalGetWindowText(HWND hWnd, LPWSTR lpString, int nMaxCount)
|
|||
BOOL WINAPI
|
||||
IsHungAppWindow(HWND hwnd)
|
||||
{
|
||||
PWND Window;
|
||||
UNICODE_STRING ClassName;
|
||||
WCHAR szClass[16];
|
||||
static const UNICODE_STRING GhostClass = RTL_CONSTANT_STRING(L"Ghost");
|
||||
|
||||
/* Ghost is a hung window */
|
||||
RtlInitEmptyUnicodeString(&ClassName, szClass, sizeof(szClass));
|
||||
if (NtUserGetClassName(hwnd, FALSE, &ClassName) &&
|
||||
Window = ValidateHwnd(hwnd);
|
||||
if (Window && Window->fnid == FNID_GHOST &&
|
||||
NtUserGetClassName(hwnd, FALSE, &ClassName) &&
|
||||
RtlEqualUnicodeString(&ClassName, &GhostClass, TRUE))
|
||||
{
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in a new issue