Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
RatinCN committed Dec 3, 2024
1 parent 57cf54a commit 44e6e29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Source/KNSoft.MakeLifeEasier/UI/Window.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ HRESULT
NTAPI
UI_GetRelativeRect(
_In_ HWND Window,
_In_ HWND RefWindow,
_In_opt_ HWND RefWindow,
_Out_ PRECT Rect)
{
POINT pt;
Expand All @@ -20,7 +20,7 @@ UI_GetRelativeRect(

pt.x = rc.left;
pt.y = rc.top;
hParent = RefWindow ? RefWindow : GetParent(Window);
hParent = RefWindow == NULL ? GetParent(Window) : RefWindow;
if (!ScreenToClient(hParent ? hParent : GetDesktopWindow(), &pt))
{
return E_UNEXPECTED;
Expand Down
2 changes: 1 addition & 1 deletion Source/KNSoft.MakeLifeEasier/UI/Window.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ HRESULT
NTAPI
UI_GetRelativeRect(
_In_ HWND Window,
_In_ HWND RefWindow,
_In_opt_ HWND RefWindow,
_Out_ PRECT Rect);

/// <seealso cref="EnumChildWindows"/>
Expand Down

0 comments on commit 44e6e29

Please sign in to comment.