projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[WIN32K]
[reactos.git]
/
reactos
/
win32ss
/
user
/
ntuser
/
message.c
diff --git
a/reactos/win32ss/user/ntuser/message.c
b/reactos/win32ss/user/ntuser/message.c
index
4dbe59f
..
8d6a76c
100644
(file)
--- a/
reactos/win32ss/user/ntuser/message.c
+++ b/
reactos/win32ss/user/ntuser/message.c
@@
-2882,6
+2882,13
@@
NtUserWaitForInputIdle( IN HANDLE hProcess,
TRACE("WFII: ppi %p\n", W32Process);
TRACE("WFII: waiting for %p\n", Handles[1] );
TRACE("WFII: ppi %p\n", W32Process);
TRACE("WFII: waiting for %p\n", Handles[1] );
+
+ /*
+ * We must add a refcount to our current PROCESSINFO,
+ * because anything could happen (including process death) we're leaving win32k
+ */
+ IntReferenceProcessInfo(W32Process);
+
do
{
UserLeave();
do
{
UserLeave();
@@
-2935,6
+2942,7
@@
WaitExit:
pti->pClientInfo->dwTIFlags = pti->TIF_flags;
}
W32Process->W32PF_flags &= ~W32PF_WAITFORINPUTIDLE;
pti->pClientInfo->dwTIFlags = pti->TIF_flags;
}
W32Process->W32PF_flags &= ~W32PF_WAITFORINPUTIDLE;
+ IntDereferenceProcessInfo(W32Process);
ObDereferenceObject(Process);
UserLeave();
return Status;
ObDereferenceObject(Process);
UserLeave();
return Status;