crypt32/tests: Fix compilation for older gcc versions (and MinGW).

This commit is contained in:
Paul Vriens 2007-01-13 16:07:10 +01:00 committed by Alexandre Julliard
parent 16cb898600
commit cd3161eb32
1 changed files with 3 additions and 1 deletions

View File

@ -309,7 +309,6 @@ static void checkHash(const BYTE *data, DWORD dataLen, ALG_ID algID,
} }
static WCHAR cspNameW[] = { 'W','i','n','e','C','r','y','p','t','T','e','m','p',0 }; static WCHAR cspNameW[] = { 'W','i','n','e','C','r','y','p','t','T','e','m','p',0 };
static WCHAR ms_def_prov_w[] = MS_DEF_PROV_W;
static void testCertProperties(void) static void testCertProperties(void)
{ {
@ -1824,6 +1823,9 @@ static void testAcquireCertPrivateKey(void)
BOOL callerFree; BOOL callerFree;
CRYPT_KEY_PROV_INFO keyProvInfo; CRYPT_KEY_PROV_INFO keyProvInfo;
HCRYPTKEY key; HCRYPTKEY key;
WCHAR ms_def_prov_w[MAX_PATH];
lstrcpyW(ms_def_prov_w, MS_DEF_PROV_W);
keyProvInfo.pwszContainerName = cspNameW; keyProvInfo.pwszContainerName = cspNameW;
keyProvInfo.pwszProvName = ms_def_prov_w; keyProvInfo.pwszProvName = ms_def_prov_w;