Skip to content

Commit

Permalink
Fixed Win functions crashing if called without parameters.
Browse files Browse the repository at this point in the history
Affects WinShow, WinHide, WinClose, WinKill, WinMinimize, WinMaximize and WinRestore.
  • Loading branch information
Lexikos committed Sep 28, 2022
1 parent b0fe42a commit 2ec9dda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/lib/win.cpp
Expand Up @@ -26,7 +26,7 @@ GNU General Public License for more details.
static FResult WinAct(WINTITLE_PARAMETERS_DECL, BuiltInFunctionID action, optl<double> aWaitTime = nullptr)
{
TCHAR title_buf[MAX_NUMBER_SIZE];
auto aTitle = TokenToString(*aWinTitle, title_buf);
auto aTitle = aWinTitle ? TokenToString(*aWinTitle, title_buf) : _T("");
auto aText = aWinText.value_or_empty();
// Set initial guess for is_ahk_group (further refined later). For ahk_group, WinText,
// ExcludeTitle, and ExcludeText must be blank so that they are reserved for future use
Expand Down

0 comments on commit 2ec9dda

Please sign in to comment.