Gerald Pfeifer : shlwapi: Remove variable retval which is not really used from GetAcceptLanguagesW.

Alexandre Julliard julliard at winehq.org
Mon May 10 11:59:16 CDT 2010


Module: wine
Branch: master
Commit: be6fa3900dc490c28f9328ce60432b23012fae69
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=be6fa3900dc490c28f9328ce60432b23012fae69

Author: Gerald Pfeifer <gerald at pfeifer.com>
Date:   Sun May  9 18:18:48 2010 +0200

shlwapi: Remove variable retval which is not really used from GetAcceptLanguagesW.

---

 dlls/shlwapi/ordinal.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/dlls/shlwapi/ordinal.c b/dlls/shlwapi/ordinal.c
index 332bdb6..22851d9 100644
--- a/dlls/shlwapi/ordinal.c
+++ b/dlls/shlwapi/ordinal.c
@@ -484,7 +484,6 @@ HRESULT WINAPI GetAcceptLanguagesW( LPWSTR langbuf, LPDWORD buflen)
     DWORD mystrlen, mytype;
     DWORD len;
     HKEY mykey;
-    HRESULT retval;
     LCID mylcid;
     WCHAR *mystr;
     LONG lres;
@@ -512,7 +511,7 @@ HRESULT WINAPI GetAcceptLanguagesW( LPWSTR langbuf, LPDWORD buflen)
 
     /* Did not find a value in the registry or the user buffer is too small */
     mylcid = GetUserDefaultLCID();
-    retval = LcidToRfc1766W(mylcid, mystr, mystrlen);
+    LcidToRfc1766W(mylcid, mystr, mystrlen);
     len = lstrlenW(mystr);
 
     memcpy( langbuf, mystr, min(*buflen, len+1)*sizeof(WCHAR) );




More information about the wine-cvs mailing list