From 9829051841c6e047de9642efb8f64cbd597edf1e Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 18 May 2021 19:49:57 +0200 Subject: [PATCH] win32_localize_menu - replace strcmp call with string_is_not_equal --- gfx/common/win32_common.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gfx/common/win32_common.c b/gfx/common/win32_common.c index 5ed2c8248e..34bb2af59d 100644 --- a/gfx/common/win32_common.c +++ b/gfx/common/win32_common.c @@ -684,6 +684,9 @@ static bool win32_browser( result = browser->open(&browser_state); + /* TODO/FIXME - this is weird - why is this called + * after the browser->open call? Seems to have no effect + * anymore here */ if (filename && browser_state.path) strlcpy(filename, browser_state.path, filename_size); @@ -1932,7 +1935,7 @@ static void win32_localize_menu(HMENU menu) metaKeyName = meta_key_to_name(metaKey); /* Append localized name, tab character, and Shortcut Key */ - if (metaKeyName && 0 != strcmp(metaKeyName, "nul")) + if (metaKeyName && string_is_not_equal(metaKeyName, "nul")) { int len1 = strlen(newLabel); int len2 = strlen(metaKeyName);