shlwapi: Remove variable retval which is not really used from GetAcceptLanguagesW.
This commit is contained in:
parent
eab579dfcb
commit
be6fa3900d
|
@ -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)
|
||||||
|
|
||||||
/* 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) );
|
||||||
|
|
Loading…
Reference in New Issue