Commit 915bdcbd authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

winemenubuilder: Simplify an if-condition (PVS-Studio).

parent baf0af67
......@@ -3427,7 +3427,7 @@ static void cleanup_menus(void)
if (data == NULL)
break;
lret = RegEnumValueW(hkey, i, value, &valueSize, NULL, NULL, (BYTE*)data, &dataSize);
if (lret == ERROR_SUCCESS || lret != ERROR_MORE_DATA)
if (lret != ERROR_MORE_DATA)
break;
valueSize *= 2;
dataSize *= 2;
......
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