msacm32/tests: Remove always true condition (PVS-Studio).
dd.szShortName is an array of CHAR and not an arbitrary pointer. Signed-off-by: Michael Stefaniuc <mstefani@redhat.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
afd1e40e82
commit
baf0af67ae
|
@ -145,7 +145,7 @@ static BOOL CALLBACK DriverEnumProc(HACMDRIVERID hadid,
|
|||
"acmDriverDetailsA(): cbStruct = %08x\n", dd.cbStruct);
|
||||
|
||||
for (iter = expected_ids; iter->shortname; ++iter) {
|
||||
if (dd.szShortName && !strcmp(iter->shortname, dd.szShortName)) {
|
||||
if (!strcmp(iter->shortname, dd.szShortName)) {
|
||||
/* try alternative product id on mismatch */
|
||||
if (iter->pid_alt && iter->pid != dd.wPid)
|
||||
ok(iter->mid == dd.wMid && iter->pid_alt == dd.wPid,
|
||||
|
|
Loading…
Reference in New Issue