Don't crash if lpDependencies is NULL.

This commit is contained in:
Huw Davies 2003-12-11 04:26:20 +00:00 committed by Alexandre Julliard
parent f3eff5232e
commit 28c2ea07ce
1 changed files with 2 additions and 0 deletions

View File

@ -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);