Module: wine Branch: master Commit: 62f4022563b0b61868b0c928973d352c2a93a079 URL: http://source.winehq.org/git/wine.git/?a=commit;h=62f4022563b0b61868b0c92897... Author: Juan Lang <juan.lang(a)gmail.com> Date: Wed Oct 24 12:46:31 2007 -0700 crypt32: Avoid misleading fixme when no data are passed to CryptUnprotectData. --- dlls/crypt32/protectdata.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/dlls/crypt32/protectdata.c b/dlls/crypt32/protectdata.c index a1a3369..3ecd35b 100644 --- a/dlls/crypt32/protectdata.c +++ b/dlls/crypt32/protectdata.c @@ -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);