Nikolay Sivov nsivov@codeweavers.com wrote:
+static BOOL EncodeBinaryToBinaryW(const BYTE *in_buf, DWORD in_len, DWORD flags, WCHAR *out_buf, DWORD *out_len) +{
- BOOL ret = TRUE;
- if (out_buf)
- {
if (*out_len < in_len)
{
SetLastError(ERROR_INSUFFICIENT_BUFFER);
ret = FALSE;
}
else if (in_len)
memcpy(out_buf, in_buf, in_len);
- }
- else
- *out_len = in_len;
- return ret;
+}
Last else statement seems to be misplaced.