Commit 28c2ea07 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

Don't crash if lpDependencies is NULL.

parent f3eff523
......@@ -526,6 +526,8 @@ static inline LPWSTR SERV_dupmulti( LPCSTR str )
UINT len = 0, n = 0;
LPWSTR wstr;
if( !str )
return NULL;
do {
len += MultiByteToWideChar( CP_ACP, 0, &str[n], -1, NULL, 0 );
n += (strlen( &str[n] ) + 1);
......
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