Skip to content
Snippets Groups Projects
Commit 38713951 authored by Michael McCormack's avatar Michael McCormack Committed by Alexandre Julliard
Browse files

Fixed MSI buffer overflow.

parent 54b1d87d
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment