kernel32: Fix 64-bits error in profile.
This commit is contained in:
parent
bb7db79b00
commit
5f4275970e
|
@ -1104,7 +1104,7 @@ static int PROFILE_GetPrivateProfileString( LPCWSTR section, LPCWSTR entry,
|
||||||
/* strip any trailing ' ' of def_val. */
|
/* strip any trailing ' ' of def_val. */
|
||||||
if (def_val)
|
if (def_val)
|
||||||
{
|
{
|
||||||
LPCWSTR p = &def_val[strlenW(def_val) - 1];
|
LPCWSTR p = def_val + strlenW(def_val) - 1;
|
||||||
|
|
||||||
while (p > def_val && *p == ' ')
|
while (p > def_val && *p == ' ')
|
||||||
p--;
|
p--;
|
||||||
|
|
Loading…
Reference in New Issue