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:
Michael Stefaniuc 2015-10-13 23:58:37 +02:00 committed by Alexandre Julliard
parent afd1e40e82
commit baf0af67ae
1 changed files with 1 additions and 1 deletions

View File

@ -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,