Commit 45a4b0a2 authored by Alexandre Julliard's avatar Alexandre Julliard

Avoid crash on NULL data pointer.

parent 63e8bd5d
......@@ -70,7 +70,7 @@ static DWORD copy_data( void *data, const void *src, DWORD len, DWORD *count, DW
}
if (count)
{
if (is_string( type ) && len && (len < *count) && ((WCHAR *)data)[len-1])
if (len && data && is_string( type ) && (len < *count) && ((WCHAR *)data)[len-1])
((WCHAR *)data)[len] = 0;
*count = len;
}
......
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