From 915bdcbdcada4c3f0b6841e79135375a14c58933 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Wed, 14 Oct 2015 00:00:18 +0200 Subject: [PATCH] winemenubuilder: Simplify an if-condition (PVS-Studio). Signed-off-by: Michael Stefaniuc Signed-off-by: Alexandre Julliard --- programs/winemenubuilder/winemenubuilder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/winemenubuilder/winemenubuilder.c b/programs/winemenubuilder/winemenubuilder.c index 76d8f3a953f..e6fd042cf7a 100644 --- a/programs/winemenubuilder/winemenubuilder.c +++ b/programs/winemenubuilder/winemenubuilder.c @@ -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;