2 Sep
2025
2 Sep
'25
10:03 p.m.
Esme Povirk (@madewokherd) commented about dlls/sane.ds/ui.c:
len = lstrlenA(activeDS.identity.Manufacturer) + lstrlenA(activeDS.identity.ProductName) + 2; szCaption = malloc(len *sizeof(WCHAR)); + + for (int i = 0; activeDS.identity.ProductFamily[i]; i++) + { + if (activeDS.identity.ProductFamily[i] == L'/') + { + activeDS.identity.ProductFamily[i] = L'_'; + } + }
I'm not sure if it's safe to modify the TW_IDENTITY structure in this way. We should probably make a copy (or just allow slashes in the key name, it seems like the registry doesn't mind them). -- https://gitlab.winehq.org/wine/wine/-/merge_requests/8858#note_114588