From 1709b6889ff4ea979e9b3d16884476c0cbcae050 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 16 Jan 2017 23:32:28 +0100 Subject: [PATCH] (ui_win32.c) Use stdstring.c --- ui/drivers/ui_win32.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/drivers/ui_win32.c b/ui/drivers/ui_win32.c index b20cea7c5c..20a09d880f 100644 --- a/ui/drivers/ui_win32.c +++ b/ui/drivers/ui_win32.c @@ -41,6 +41,7 @@ #include #include #include +#include #include #include "../ui_companion_driver.h" @@ -543,7 +544,7 @@ static bool win32_browser( new_title[0] = '\0'; new_file[0] = '\0'; - if (title && *title) + if (!string_is_empty(title)) strlcpy(new_title, title, sizeof(new_title)); if (filename && *filename)