Commit baf0af67 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

msacm32/tests: Remove always true condition (PVS-Studio).

dd.szShortName is an array of CHAR and not an arbitrary pointer. Signed-off-by: 's avatarMichael Stefaniuc <mstefani@redhat.de> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent afd1e40e
...@@ -145,7 +145,7 @@ static BOOL CALLBACK DriverEnumProc(HACMDRIVERID hadid, ...@@ -145,7 +145,7 @@ static BOOL CALLBACK DriverEnumProc(HACMDRIVERID hadid,
"acmDriverDetailsA(): cbStruct = %08x\n", dd.cbStruct); "acmDriverDetailsA(): cbStruct = %08x\n", dd.cbStruct);
for (iter = expected_ids; iter->shortname; ++iter) { 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 */ /* try alternative product id on mismatch */
if (iter->pid_alt && iter->pid != dd.wPid) if (iter->pid_alt && iter->pid != dd.wPid)
ok(iter->mid == dd.wMid && iter->pid_alt == dd.wPid, ok(iter->mid == dd.wMid && iter->pid_alt == dd.wPid,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment