Commit 5f427597 authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Alexandre Julliard

kernel32: Fix 64-bits error in profile.

parent bb7db79b
...@@ -1104,7 +1104,7 @@ static int PROFILE_GetPrivateProfileString( LPCWSTR section, LPCWSTR entry, ...@@ -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--;
......
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