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

Alexandre Julliard julliard at winehq.org
Wed Dec 5 13:43:10 CST 2012


Module: wine
Branch: master
Commit: 2f7885d99011e171fd3de3339374246e0f31cad0
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2f7885d99011e171fd3de3339374246e0f31cad0

Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date:   Tue Dec  4 22:20:37 2012 +0000

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

---

 dlls/user32/sysparams.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

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-cvs mailing list