Gerald Pfeifer : shlwapi: Remove variable retval which is not really used from GetAcceptLanguagesW.
Module: wine Branch: master Commit: be6fa3900dc490c28f9328ce60432b23012fae69 URL: http://source.winehq.org/git/wine.git/?a=commit;h=be6fa3900dc490c28f9328ce60... Author: Gerald Pfeifer <gerald(a)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) );
participants (1)
-
Alexandre Julliard