Skip to content

Commit

Permalink
Merge #2569
Browse files Browse the repository at this point in the history
2569: Only call global_mock->XInitThreads() if global mock exists r=AlanGriffiths a=wmww

Fixes #2568

Co-authored-by: Sophie Winter <wm@wmww.sh>
  • Loading branch information
bors[bot] and wmww committed Aug 24, 2022
2 parents 645b744 + 473c51b commit dde3dba
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/mir_test_doubles/mock_x11.cpp
Expand Up @@ -221,7 +221,14 @@ XErrorHandler XSetErrorHandler(XErrorHandler handler)

Status XInitThreads()
{
return global_mock->XInitThreads();
if (global_mock)
{
return global_mock->XInitThreads();
}
else
{
return 0;
}
}

int XSetWMHints(Display* display, Window window, XWMHints* wmhints)
Expand Down

0 comments on commit dde3dba

Please sign in to comment.