Mercurial > trustbridge
comparison ui/certificate.cpp @ 1310:60e481aa75ca
(issue152) Do not return CryptUIDlgViewContext's return value
The return value is false if the user cancels the dialog.
But as the certificate has been shown this is not really an
error.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Mon, 13 Oct 2014 14:13:05 +0200 |
parents | c2fd36cd4093 |
children |
comparison
equal
deleted
inserted
replaced
1309:32a44cfb78c0 | 1310:60e481aa75ca |
---|---|
232 if (pCert == NULL) { | 232 if (pCert == NULL) { |
233 qDebug() << "Failed to parse certificate."; | 233 qDebug() << "Failed to parse certificate."; |
234 goto done; | 234 goto done; |
235 } | 235 } |
236 | 236 |
237 if (!funcPtr(CERT_STORE_CERTIFICATE_CONTEXT, | 237 funcPtr(CERT_STORE_CERTIFICATE_CONTEXT, |
238 pCert, | 238 pCert, |
239 (HWND) parent, | 239 (HWND) parent, |
240 NULL, // Default Title | 240 NULL, // Default Title |
241 0, | 241 0, |
242 NULL)) { | 242 NULL); |
243 qDebug() << "Failed to view certificate."; | |
244 retval = false; | |
245 goto done; | |
246 } | |
247 | 243 |
248 retval = true; | 244 retval = true; |
249 done: | 245 done: |
250 | 246 |
251 if (pCert) { | 247 if (pCert) { |