user32: Do not call HeapFree() with address of stack memory.

This commit is contained in:
Andrew Talbot 2012-12-04 22:20:37 +00:00 committed by Alexandre Julliard
parent 2cb1372350
commit 2f7885d990
1 changed files with 0 additions and 2 deletions

View File

@ -977,7 +977,6 @@ static BOOL get_path_entry( union sysparam_all_entry *entry, UINT int_param, voi
if (load_entry( &entry->hdr, buffer, sizeof(buffer) ))
lstrcpynW( entry->path.path, buffer, MAX_PATH );
HeapFree( GetProcessHeap(), 0, buffer );
}
lstrcpynW( ptr_param, entry->path.path, int_param );
return TRUE;
@ -996,7 +995,6 @@ static BOOL set_path_entry( union sysparam_all_entry *entry, UINT int_param, voi
strcpyW( entry->path.path, buffer );
entry->hdr.loaded = TRUE;
}
HeapFree( GetProcessHeap(), 0, buffer );
return ret;
}