Mercurial > hg > easyhg
comparison src/common.cpp @ 447:8506333fe65c
Win32 build fix
author | Chris Cannam <chris.cannam@eecs.qmul.ac.uk> |
---|---|
date | Tue, 28 Jun 2011 17:03:16 +0100 |
parents | 459b140032d4 |
children | 856da063d76e |
comparison
equal
deleted
inserted
replaced
446:f72cad3baa34 | 447:8506333fe65c |
---|---|
300 PROV_RSA_FULL, | 300 PROV_RSA_FULL, |
301 CRYPT_VERIFYCONTEXT | CRYPT_SILENT)) { | 301 CRYPT_VERIFYCONTEXT | CRYPT_SILENT)) { |
302 return QByteArray(); | 302 return QByteArray(); |
303 } | 303 } |
304 | 304 |
305 if (!CryptGenRandom(provider, len, buffer)) { | 305 if (!CryptGenRandom(provider, len, (BYTE *)buffer)) { |
306 CryptReleaseContext(provider, 0); | 306 CryptReleaseContext(provider, 0); |
307 return QByteArray(); | 307 return QByteArray(); |
308 } | 308 } |
309 | 309 |
310 CryptReleaseContext(provider, 0); | 310 CryptReleaseContext(provider, 0); |