Module: wine Branch: master Commit: 030c37ceae9ab3370ed0d135471b825588a2b3b2 URL: https://gitlab.winehq.org/wine/wine/-/commit/030c37ceae9ab3370ed0d135471b825...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Wed Sep 14 11:34:28 2022 +0200
wined3d: Return bools from all return paths in wined3d_cs_map_upload_bo().
---
dlls/wined3d/cs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/cs.c b/dlls/wined3d/cs.c index 9fd67cf0045..8ddcb95ddcc 100644 --- a/dlls/wined3d/cs.c +++ b/dlls/wined3d/cs.c @@ -2968,13 +2968,13 @@ static bool wined3d_cs_map_upload_bo(struct wined3d_device_context *context, str if (!d3d_info->xyzrhw || !d3d_info->vertex_bgra || !d3d_info->ffp_generic_attributes) { TRACE("Not returning a persistent buffer because we might need to do vertex attribute conversion.\n"); - return NULL; + return false; }
if (resource->pin_sysmem) { TRACE("Not allocating an upload buffer because system memory is pinned for this resource.\n"); - return NULL; + return false; }
if ((flags & WINED3D_MAP_NOOVERWRITE) && client->addr.buffer_object == CLIENT_BO_DISCARDED)