kernel32: Fix 64-bits error in profile.

This commit is contained in:
Maarten Lankhorst 2008-11-21 23:24:51 +01:00 committed by Alexandre Julliard
parent bb7db79b00
commit 5f4275970e
1 changed files with 1 additions and 1 deletions

View File

@ -1104,7 +1104,7 @@ static int PROFILE_GetPrivateProfileString( LPCWSTR section, LPCWSTR entry,
/* strip any trailing ' ' of 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 == ' ')
p--;