[PATCH 0/1] MR7958: opcservices: Fix string comparison in opc_part_uri_get_rels_uri.
This has to have been a mistake: It doesn't make sense to look at the first two-and-a-half characters of relsdirW. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/7958
From: Alex Henrie <alexhenrie24(a)gmail.com> --- dlls/opcservices/uri.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/opcservices/uri.c b/dlls/opcservices/uri.c index 556aaae354d..a3ea617e297 100644 --- a/dlls/opcservices/uri.c +++ b/dlls/opcservices/uri.c @@ -477,7 +477,7 @@ static IUri *opc_part_uri_get_rels_uri(IUri *uri) { if (!wcscmp(path + len - ARRAY_SIZE(relsextW) + 1, relsextW)) { - if (start && !memcmp(start, relsdirW, ARRAY_SIZE(relsdirW) - sizeof(WCHAR))) + if (start && !memcmp(start, relsdirW, sizeof(relsdirW) - sizeof(WCHAR))) { SysFreeString(path); return NULL; -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/7958
This merge request was approved by Nikolay Sivov. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/7958
participants (3)
-
Alex Henrie -
Alex Henrie (@alexhenrie) -
Nikolay Sivov (@nsivov)