uninstaller: Allow use of program names when uninstalling from the command line

Hugh McMaster hugh.mcmaster at outlook.com
Fri Jul 17 07:41:23 CDT 2015


Users are limited to using the UUID (and enclosing braces) of their
program as an argument from the commnand line.

The source code implies that program names are allowed, given the use of WCHAR *nameW.
---
 programs/uninstaller/main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/programs/uninstaller/main.c b/programs/uninstaller/main.c
index 6b16e5d..7239daf 100644
--- a/programs/uninstaller/main.c
+++ b/programs/uninstaller/main.c
@@ -97,7 +97,8 @@ static void RemoveSpecificProgram(WCHAR *nameW)
 
     for (i=0; i < numentries; i++)
     {
-        if (CompareStringW(GetThreadLocale(), NORM_IGNORECASE, entries[i].key, -1, nameW, -1) == CSTR_EQUAL)
+        if (CompareStringW(GetThreadLocale(), NORM_IGNORECASE, entries[i].key, -1, nameW, -1) == CSTR_EQUAL ||
+            CompareStringW(GetThreadLocale(), NORM_IGNORECASE, entries[i].descr, -1, nameW, -1) == CSTR_EQUAL)
         {
             entries[i].active++;
             break;
-- 
1.9.1




More information about the wine-patches mailing list