crypt32: Avoid misleading fixme when no data are passed to CryptUnprotectData.
This commit is contained in:
parent
4d3853ce9f
commit
62f4022563
|
@ -1015,6 +1015,11 @@ BOOL WINAPI CryptUnprotectData(DATA_BLOB* pDataIn,
|
||||||
SetLastError(ERROR_INVALID_PARAMETER);
|
SetLastError(ERROR_INVALID_PARAMETER);
|
||||||
goto finished;
|
goto finished;
|
||||||
}
|
}
|
||||||
|
if (!pDataIn->cbData)
|
||||||
|
{
|
||||||
|
SetLastError(ERROR_INVALID_DATA);
|
||||||
|
goto finished;
|
||||||
|
}
|
||||||
|
|
||||||
/* debug: show our arguments */
|
/* debug: show our arguments */
|
||||||
report(pDataIn,pOptionalEntropy,pPromptStruct,dwFlags);
|
report(pDataIn,pOptionalEntropy,pPromptStruct,dwFlags);
|
||||||
|
|
Loading…
Reference in New Issue