Commit be6fa390 authored by Gerald Pfeifer's avatar Gerald Pfeifer Committed by Alexandre Julliard

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

parent eab579df
...@@ -484,7 +484,6 @@ HRESULT WINAPI GetAcceptLanguagesW( LPWSTR langbuf, LPDWORD buflen) ...@@ -484,7 +484,6 @@ HRESULT WINAPI GetAcceptLanguagesW( LPWSTR langbuf, LPDWORD buflen)
DWORD mystrlen, mytype; DWORD mystrlen, mytype;
DWORD len; DWORD len;
HKEY mykey; HKEY mykey;
HRESULT retval;
LCID mylcid; LCID mylcid;
WCHAR *mystr; WCHAR *mystr;
LONG lres; LONG lres;
...@@ -512,7 +511,7 @@ HRESULT WINAPI GetAcceptLanguagesW( LPWSTR langbuf, LPDWORD buflen) ...@@ -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 */ /* Did not find a value in the registry or the user buffer is too small */
mylcid = GetUserDefaultLCID(); mylcid = GetUserDefaultLCID();
retval = LcidToRfc1766W(mylcid, mystr, mystrlen); LcidToRfc1766W(mylcid, mystr, mystrlen);
len = lstrlenW(mystr); len = lstrlenW(mystr);
memcpy( langbuf, mystr, min(*buflen, len+1)*sizeof(WCHAR) ); memcpy( langbuf, mystr, min(*buflen, len+1)*sizeof(WCHAR) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment