Commit 62f40225 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

crypt32: Avoid misleading fixme when no data are passed to CryptUnprotectData.

parent 4d3853ce
......@@ -1015,6 +1015,11 @@ BOOL WINAPI CryptUnprotectData(DATA_BLOB* pDataIn,
SetLastError(ERROR_INVALID_PARAMETER);
goto finished;
}
if (!pDataIn->cbData)
{
SetLastError(ERROR_INVALID_DATA);
goto finished;
}
/* debug: show our arguments */
report(pDataIn,pOptionalEntropy,pPromptStruct,dwFlags);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment