kernel32: Free profile before reloading.

This commit is contained in:
Michael Karcher 2009-02-18 14:36:28 +01:00 committed by Alexandre Julliard
parent ecffb8038a
commit abf9cd0993
1 changed files with 1 additions and 0 deletions

View File

@ -807,6 +807,7 @@ static BOOL PROFILE_Open( LPCWSTR filename, BOOL write_access )
{
TRACE("(%s): already opened, needs refreshing (mru=%d)\n",
debugstr_w(buffer), i);
PROFILE_Free(CurProfile->section);
CurProfile->section = PROFILE_Load(hFile, &CurProfile->encoding);
CurProfile->LastWriteTime = LastWriteTime;
}