29 Jun
2022
29 Jun
'22
1:40 p.m.
Andrew Eikum (@aeikum) commented about dlls/mmdevapi/devenum.c:
if (!RegCreateKeyExW(key, L"Properties", 0, NULL, 0, KEY_WRITE|KEY_READ|KEY_WOW64_64KEY, NULL, &keyprop, NULL)) { PROPVARIANT pv; + pv.pwszVal = NULL;
Why not just assign to `name` here and remove the if-NULL check later in the function? -- https://gitlab.winehq.org/wine/wine/-/merge_requests/338#note_2954