Don't crash if lpDependencies is NULL.
This commit is contained in:
parent
f3eff5232e
commit
28c2ea07ce
|
@ -526,6 +526,8 @@ static inline LPWSTR SERV_dupmulti( LPCSTR str )
|
||||||
UINT len = 0, n = 0;
|
UINT len = 0, n = 0;
|
||||||
LPWSTR wstr;
|
LPWSTR wstr;
|
||||||
|
|
||||||
|
if( !str )
|
||||||
|
return NULL;
|
||||||
do {
|
do {
|
||||||
len += MultiByteToWideChar( CP_ACP, 0, &str[n], -1, NULL, 0 );
|
len += MultiByteToWideChar( CP_ACP, 0, &str[n], -1, NULL, 0 );
|
||||||
n += (strlen( &str[n] ) + 1);
|
n += (strlen( &str[n] ) + 1);
|
||||||
|
|
Loading…
Reference in New Issue