Author: greatlrd Date: Fri Jun 23 22:54:53 2006 New Revision: 22541
URL: http://svn.reactos.org/svn/reactos?rev=22541&view=rev Log: 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'
Modified: trunk/reactos/dll/win32/crypt32/protectdata.c
Modified: trunk/reactos/dll/win32/crypt32/protectdata.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/crypt32/protectda... ============================================================================== --- trunk/reactos/dll/win32/crypt32/protectdata.c (original) +++ trunk/reactos/dll/win32/crypt32/protectdata.c Fri Jun 23 22:54:53 2006 @@ -56,9 +56,6 @@ 'I',''','m',' ','h','u','n','t','i','n','g',' ', 'w','a','b','b','i','t','s',0 }; - -static const WCHAR szNullString[] = -{ '\0' };
/* * The data format returned by the real Windows CryptProtectData seems @@ -866,7 +863,7 @@ /* 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))