From 0673ba64304e022410eb4c702ebae2a1d5ce155d Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Fri, 23 Jun 2006 18:54:53 +0000 Subject: [PATCH] rewrite janderwald patch for NULL, I see it as pointless using static const WCHAR szNullString[] = { '\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 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/reactos/dll/win32/crypt32/protectdata.c b/reactos/dll/win32/crypt32/protectdata.c index 320a62cef7c..0d5a4fa35bb 100644 --- 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))