Module: wine Branch: master Commit: ca8b05e9cd8f2ed975af11f808eb93bac025bd22 URL: https://gitlab.winehq.org/wine/wine/-/commit/ca8b05e9cd8f2ed975af11f808eb93b...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Mon Mar 13 11:46:59 2023 +0100
wined3d: Use wined3d_get_line() in shader_spirv_compile_shader().
---
dlls/wined3d/shader_spirv.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/dlls/wined3d/shader_spirv.c b/dlls/wined3d/shader_spirv.c index 60ef2c022aa..7c8351453a1 100644 --- a/dlls/wined3d/shader_spirv.c +++ b/dlls/wined3d/shader_spirv.c @@ -279,11 +279,12 @@ static VkShaderModule shader_spirv_compile_shader(struct wined3d_context_vk *con ret = vkd3d_shader_compile(&info, &spirv, &messages); if (messages && *messages && FIXME_ON(d3d_shader)) { - const char *ptr = messages; - const char *line; + const char *ptr, *end, *line;
FIXME("Shader log:\n"); - while ((line = get_line(&ptr))) + ptr = messages; + end = ptr + strlen(ptr); + while ((line = wined3d_get_line(&ptr, end))) { FIXME(" %.*s", (int)(ptr - line), line); }