19 Aug
2025
19 Aug
'25
4:23 p.m.
Esme Povirk (@madewokherd) commented about dlls/sane.ds/cfg.c:
+ BOOL found; + HANDLE hFile = CreateFileW( + path, + GENERIC_READ, + 0, NULL, OPEN_EXISTING, + FILE_ATTRIBUTE_NORMAL, + NULL + ); + + if (hFile == INVALID_HANDLE_VALUE) + { + ERR("CreateFileW returned error: %lu\n", GetLastError()); + return FALSE; + } + + sprintf(search, "%s=", name); This `sprintf` is done twice.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/8778#note_113167