From 6fbde875e293ccac5b026f84ba39c0a0a58ae636 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 27 May 2017 00:33:26 -0400 Subject: [PATCH] code style: wrap a single-statement if in braces. --- src/video/windows/SDL_windowsmessagebox.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video/windows/SDL_windowsmessagebox.c b/src/video/windows/SDL_windowsmessagebox.c index e60b2c27d..9c21f4545 100644 --- a/src/video/windows/SDL_windowsmessagebox.c +++ b/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;