31 Jan
2023
31 Jan
'23
2:42 a.m.
Hans Leidekker (@hans) commented about dlls/secur32/schannel.c:
if (!context_handle) return SEC_E_INVALID_HANDLE; ctx = schan_get_object(context_handle->dwLower, SCHAN_HANDLE_CTX); + if (!ctx) return SEC_E_INVALID_HANDLE;
You could be shortened to something like this: ``` if (!context_handle || !(ctx = schan_get_object(context_handle->dwLower, SCHAN_HANDLE_CTX)) return SEC_E_INVALID_HANDLE; ``` -- https://gitlab.winehq.org/wine/wine/-/merge_requests/2075#note_22436