remove a few stale NULL message/title checks after commit e2b729b1756a

top-level guarantees non-NULL message / title passed in messageboxdata
This commit is contained in:
Ozkan Sezer
2020-12-10 12:24:24 +03:00
parent f1cab8aea6
commit 5c212cb0c5
4 changed files with 7 additions and 7 deletions

View File

@@ -314,7 +314,7 @@ static SDL_bool AddDialogControl(WIN_DialogData *dialog, WORD type, DWORD style,
if (!AddDialogData(dialog, &type, sizeof(type))) {
return SDL_FALSE;
}
if (type == DLGITEMTYPEBUTTON || (type == DLGITEMTYPESTATIC && caption != NULL && caption[0])) {
if (type == DLGITEMTYPEBUTTON || (type == DLGITEMTYPESTATIC && caption[0])) {
if (!AddDialogString(dialog, caption)) {
return SDL_FALSE;
}