Francois Gouget : testbot/SetWinLocale: Simplify checking for the locale options.
Alexandre Julliard
julliard at winehq.org
Wed Dec 22 16:08:53 CST 2021
Module: tools
Branch: master
Commit: 90a6b5898731ef4f9fa2b48757715a418381576c
URL: https://source.winehq.org/git/tools.git/?a=commit;h=90a6b5898731ef4f9fa2b48757715a418381576c
Author: Francois Gouget <fgouget at codeweavers.com>
Date: Wed Dec 22 17:46:02 2021 +0100
testbot/SetWinLocale: Simplify checking for the locale options.
They cannot have a defined value that is false.
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
testbot/bin/SetWinLocale | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/testbot/bin/SetWinLocale b/testbot/bin/SetWinLocale
index 67052f0..c4ca7df 100755
--- a/testbot/bin/SetWinLocale
+++ b/testbot/bin/SetWinLocale
@@ -413,8 +413,8 @@ if (!defined $Usage)
$CountryId = $Countries{$OptCountry};
}
- if (!defined $OptLocale and !defined $OptSystem and !defined $OptMUI and
- !defined $OptKeyboard and !defined $OptCountry)
+ if (!$OptLocale and !$OptSystem and !$OptMUI and !$OptKeyboard and
+ !$OptCountry)
{
Error("you must specify at least one locale to change\n");
$Usage = 2;
More information about the wine-cvs
mailing list