projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4ef526
)
rewrite janderwald patch for NULL, I see it as pointless using static const WCHAR...
author
Magnus Olsen
<magnus@greatlord.com>
Fri, 23 Jun 2006 18:54:53 +0000
(18:54 +0000)
committer
Magnus Olsen
<magnus@greatlord.com>
Fri, 23 Jun 2006 18:54:53 +0000
(18:54 +0000)
{ '\0' }; to return a null termentate string when u can simple replace it with L'\0'
svn path=/trunk/; revision=22541
reactos/dll/win32/crypt32/protectdata.c
patch
|
blob
|
history
diff --git
a/reactos/dll/win32/crypt32/protectdata.c
b/reactos/dll/win32/crypt32/protectdata.c
index
320a62c
..
0d5a4fa
100644
(file)
--- a/
reactos/dll/win32/crypt32/protectdata.c
+++ b/
reactos/dll/win32/crypt32/protectdata.c
@@
-57,9
+57,6
@@
static const BYTE crypt32_protectdata_secret[] = {
'w','a','b','b','i','t','s',0
};
-static const WCHAR szNullString[] =
-{ '\0' };
-
/*
* The data format returned by the real Windows CryptProtectData seems
* to be something like this:
@@
-866,7
+863,7
@@
BOOL WINAPI CryptProtectData(DATA_BLOB* pDataIn,
/* Windows appears to create an empty szDataDescr instead of maintaining
* a NULL */
if (!szDataDescr)
- szDataDescr =
szNullString
;
+ szDataDescr =
L'\0'
;
/* get crypt context */
if (!CryptAcquireContextW(&hProv,NULL,NULL,CRYPT32_PROTECTDATA_PROV,CRYPT_VERIFYCONTEXT))