Skip to content

Commit

Permalink
修复宏的错误使用
Browse files Browse the repository at this point in the history
  • Loading branch information
ALTaleX531 committed Aug 17, 2023
2 parents f3a39ff + e5acb21 commit bf3efd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TFMain/ToolTipHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ HRESULT WINAPI TranslucentFlyouts::ToolTipHandler::DrawThemeBackground(
)
};
RETURN_HR_IF_EXPECTED(
E_NOTIMPL, itemDisabled
E_NOTIMPL, (itemDisabled != 0)
);

g_darkMode = ThemeHelper::DetermineThemeMode(hTheme, L"Explorer"sv, L"Tooltip"sv, 0, 0, TMT_TEXTCOLOR);
Expand Down Expand Up @@ -156,7 +156,7 @@ int WINAPI ToolTipHandler::DrawTextW(
)
};
RETURN_HR_IF_EXPECTED(
E_NOTIMPL, itemDisabled
E_NOTIMPL, (itemDisabled != 0)
);
HWND hWnd{ WindowFromDC(hdc) };
RETURN_LAST_ERROR_IF_NULL_EXPECTED(hWnd);
Expand Down

0 comments on commit bf3efd1

Please sign in to comment.