26 Sep
2025
26 Sep
'25
2:16 p.m.
Nikolay Sivov (@nsivov) commented about dlls/combase/combase.c:
+ hitlimit = (visitedcount >= 16); + for (int i = 0; i < visitedcount && !hitlimit; i++) + { + if (lstrcmpiW(progid, visited[i]) == 0) + hitlimit = TRUE; } - free(buf);
- if (RegQueryValueW(xhkey, NULL, buf2, &buf2len)) + if (hitlimit) { - RegCloseKey(xhkey); - WARN("couldn't query clsid value for ProgID %s\n", debugstr_w(progid)); - return CO_E_CLASSSTRING; + *clsid = forceassign ? GUID_NULL : origclsid; + return forceassign ? CO_E_CLASSSTRING : REGDB_E_INVALIDVALUE; It's better to handle such differences at the caller.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/7539#note_116878