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

This commit is contained in:
Juan Lang 2007-10-24 12:46:31 -07:00 committed by Alexandre Julliard
parent 4d3853ce9f
commit 62f4022563
1 changed files with 5 additions and 0 deletions

View File

@ -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);