Skip to content

Commit

Permalink
code style: wrap a single-statement if in braces.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed May 27, 2017
1 parent 3fbd21c commit 6fbde87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video/windows/SDL_windowsmessagebox.c
Expand Up @@ -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;
Expand Down

0 comments on commit 6fbde87

Please sign in to comment.