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.