mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 18:54:41 +00:00
shell32: Fix string size condition check (Coverity).
The issue was introduced by 68fd74e7f9
.
This commit is contained in:
parent
bf58285a90
commit
eb8cac0f08
|
@ -164,8 +164,8 @@ static BOOL SHELL_ArgifyW(WCHAR* out, int len, const WCHAR* fmt, const WCHAR* lp
|
|||
case 'l':
|
||||
case 'L':
|
||||
if (lpFile) {
|
||||
if ((size = SearchPathW(NULL, lpFile, L".exe", ARRAY_SIZE(xlpFile), xlpFile, NULL)
|
||||
&& size <= ARRAY_SIZE(xlpFile)))
|
||||
size = SearchPathW(NULL, lpFile, L".exe", ARRAY_SIZE(xlpFile), xlpFile, NULL);
|
||||
if (size && size <= ARRAY_SIZE(xlpFile))
|
||||
cmd = xlpFile;
|
||||
else
|
||||
cmd = lpFile;
|
||||
|
|
Loading…
Reference in a new issue