Commit 38713951 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Fixed MSI buffer overflow.

parent 54b1d87d
...@@ -457,7 +457,7 @@ static UINT msi_string2id( string_table *st, LPCWSTR buffer, UINT *id ) ...@@ -457,7 +457,7 @@ static UINT msi_string2id( string_table *st, LPCWSTR buffer, UINT *id )
static LPWSTR strdupW( LPCWSTR str ) static LPWSTR strdupW( LPCWSTR str )
{ {
UINT len = lstrlenW( str ); UINT len = lstrlenW( str ) + 1;
LPWSTR ret = HeapAlloc( GetProcessHeap(), 0, len*sizeof (WCHAR) ); LPWSTR ret = HeapAlloc( GetProcessHeap(), 0, len*sizeof (WCHAR) );
if( ret ) if( ret )
lstrcpyW( ret, str ); lstrcpyW( ret, str );
......
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