[PATCH 1/2] uxtheme: Remove an unnecessary condition check.
Zhiyi Zhang
zzhang at codeweavers.com
Mon Jan 4 01:57:44 CST 2021
Signed-off-by: Zhiyi Zhang <zzhang at codeweavers.com>
---
dlls/uxtheme/buffer.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/dlls/uxtheme/buffer.c b/dlls/uxtheme/buffer.c
index b07284f8e06..f159d5c1be0 100644
--- a/dlls/uxtheme/buffer.c
+++ b/dlls/uxtheme/buffer.c
@@ -52,8 +52,6 @@ static void free_paintbuffer(struct paintbuffer *buffer)
static struct paintbuffer *get_buffer_obj(HPAINTBUFFER handle)
{
- if (!handle)
- return NULL;
return handle;
}
--
2.27.0
More information about the wine-devel
mailing list