mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 06:30:37 +00:00
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;
|
||||
LPWSTR wstr;
|
||||
|
||||
if( !str )
|
||||
return NULL;
|
||||
do {
|
||||
len += MultiByteToWideChar( CP_ACP, 0, &str[n], -1, NULL, 0 );
|
||||
n += (strlen( &str[n] ) + 1);
|
||||
|
Loading…
Reference in New Issue
Block a user