Juan Lang : crypt32: Avoid misleading fixme when no data are passed to CryptUnprotectData.
Alexandre Julliard
julliard at winehq.org
Thu Oct 25 08:38:47 CDT 2007
Module: wine
Branch: master
Commit: 62f4022563b0b61868b0c928973d352c2a93a079
URL: http://source.winehq.org/git/wine.git/?a=commit;h=62f4022563b0b61868b0c928973d352c2a93a079
Author: Juan Lang <juan.lang at 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);
More information about the wine-cvs
mailing list