https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3235e35dee1fb20b462e55a60fcafef63fe70638

commit 3235e35dee1fb20b462e55a60fcafef63fe70638
Author:     Thomas Faber <thomas.fa...@reactos.org>
AuthorDate: Fri Oct 15 22:30:34 2021 -0400
Commit:     Thomas Faber <thomas.fa...@reactos.org>
CommitDate: Fri Oct 29 22:06:49 2021 -0400

    [WIN32K] Remove unnecessary if in NtUserGetGUIThreadInfo.
    
    This condition is already checked above.
    Powered by clang-cl.
---
 win32ss/user/ntuser/misc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/win32ss/user/ntuser/misc.c b/win32ss/user/ntuser/misc.c
index f8c0d3e1ec3..10fa0144f16 100644
--- a/win32ss/user/ntuser/misc.c
+++ b/win32ss/user/ntuser/misc.c
@@ -426,7 +426,7 @@ NtUserGetGUIThreadInfo(
         MsgQueue = W32Thread->MessageQueue;
       else
       {
-        if ( Desktop ) MsgQueue = Desktop->ActiveMessageQueue;
+        MsgQueue = Desktop->ActiveMessageQueue;
       }
    }
    else

Reply via email to