Fixed MSI buffer overflow.
This commit is contained in:
parent
54b1d87daf
commit
3871395140
|
@ -457,7 +457,7 @@ static UINT msi_string2id( string_table *st, LPCWSTR buffer, UINT *id )
|
|||
|
||||
static LPWSTR strdupW( LPCWSTR str )
|
||||
{
|
||||
UINT len = lstrlenW( str );
|
||||
UINT len = lstrlenW( str ) + 1;
|
||||
LPWSTR ret = HeapAlloc( GetProcessHeap(), 0, len*sizeof (WCHAR) );
|
||||
if( ret )
|
||||
lstrcpyW( ret, str );
|
||||
|
|
Loading…
Reference in New Issue