30 Nov
2024
30 Nov
'24
4:25 p.m.
Rémi Bernon (@rbernon) commented about dlls/bluetoothapis/main.c:
+ + TRACE("(%p, %p)\n", params, radio); + + if (!params) + { + SetLastError(ERROR_INVALID_PARAMETER); + return NULL; + } + if (params->dwSize != sizeof(*params)) + { + SetLastError(ERROR_REVISION_MISMATCH); + return NULL; + } + + find = calloc(1, sizeof(*find)); + if (!find) We more often combine these in a single line, please adopt this pattern, unless it creates really long lines:
```suggestion:-1+0 if (!(find = calloc( 1, sizeof(*find) ))) ``` -- https://gitlab.winehq.org/wine/wine/-/merge_requests/6924#note_89320