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

Andrew Talbot andrew.talbot at talbotville.com
Tue Dec 4 16:20:37 CST 2012


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

diff --git a/dlls/user32/sysparams.c b/dlls/user32/sysparams.c
index 3e9a639..08098c0 100644
--- a/dlls/user32/sysparams.c
+++ b/dlls/user32/sysparams.c
@@ -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;
 }
 




More information about the wine-patches mailing list