Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
code style: wrap a single-statement if in braces.
- Loading branch information
Showing
with
2 additions
and
2 deletions.
-
+2
−2
src/video/windows/SDL_windowsmessagebox.c
|
@@ -472,9 +472,9 @@ WIN_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid) |
|
|
|
|
|
/* If we have a parent window, get the Instance and HWND for them |
|
|
* so that our little dialog gets exclusive focus at all times. */ |
|
|
if (messageboxdata->window) |
|
|
if (messageboxdata->window) { |
|
|
ParentWindow = ((SDL_WindowData*)messageboxdata->window->driverdata)->hwnd; |
|
|
|
|
|
} |
|
|
|
|
|
which = DialogBoxIndirect(NULL, (DLGTEMPLATE*)dialog->lpDialog, ParentWindow, (DLGPROC)MessageBoxDialogProc); |
|
|
*buttonid = buttons[which].buttonid; |
|
|