shell32/tests: Remove variable res which is not really used from init_strings.

Gerald Pfeifer gerald at pfeifer.com
Fri May 7 16:38:35 CDT 2010


Note, this is an auxiliary function with zero error handling, including
other invocations of this function, so just checking anything here would
seem weird.

Gerald

---
 dlls/shell32/tests/progman_dde.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/dlls/shell32/tests/progman_dde.c b/dlls/shell32/tests/progman_dde.c
index 333e1f1..d7bf432 100644
--- a/dlls/shell32/tests/progman_dde.c
+++ b/dlls/shell32/tests/progman_dde.c
@@ -149,7 +149,6 @@ static void init_strings(void)
     {
         HKEY key;
         DWORD size;
-        LONG res;
 
         /* Older Win9x and NT4 */
 
@@ -162,7 +161,7 @@ static void init_strings(void)
 
         RegOpenKeyA(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders", &key);
         size = sizeof(commonprograms);
-        res = RegQueryValueExA(key, "Common Programs", NULL, NULL, (LPBYTE)&commonprograms, &size);
+        RegQueryValueExA(key, "Common Programs", NULL, NULL, (LPBYTE)&commonprograms, &size);
         RegCloseKey(key);
     }
 
-- 
1.6.6.2



More information about the wine-patches mailing list