diff options
| author | Rob Mensching <rob@firegiant.com> | 2021-04-26 11:31:05 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2021-05-11 11:14:01 -0700 |
| commit | df016066100df955d5ff98811e113fb2b1bd4b8a (patch) | |
| tree | a27b35a3651ca7b1d8c4bb7c7483ec2f92583e08 /src/ext/Iis/ca/scacert.cpp | |
| parent | dc6022da6cdbb9d7ca54c4a36485ceead07feaaf (diff) | |
| download | wix-df016066100df955d5ff98811e113fb2b1bd4b8a.tar.gz wix-df016066100df955d5ff98811e113fb2b1bd4b8a.tar.bz2 wix-df016066100df955d5ff98811e113fb2b1bd4b8a.zip | |
Implement integrated build process
Diffstat (limited to 'src/ext/Iis/ca/scacert.cpp')
| -rw-r--r-- | src/ext/Iis/ca/scacert.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ext/Iis/ca/scacert.cpp b/src/ext/Iis/ca/scacert.cpp index 5eae905a..0bb87f9f 100644 --- a/src/ext/Iis/ca/scacert.cpp +++ b/src/ext/Iis/ca/scacert.cpp | |||
| @@ -552,8 +552,12 @@ static HRESULT ReadCertificateFile( | |||
| 552 | // If we have a PFX blob, get the first certificate out of the PFX and use that instead of the PFX. | 552 | // If we have a PFX blob, get the first certificate out of the PFX and use that instead of the PFX. |
| 553 | if (dwContentType & CERT_QUERY_CONTENT_PFX) | 553 | if (dwContentType & CERT_QUERY_CONTENT_PFX) |
| 554 | { | 554 | { |
| 555 | hr = FileRead(&pbData, &cbData, wzPath); | 555 | SIZE_T size = 0; |
| 556 | |||
| 557 | hr = FileRead(&pbData, &size, wzPath); | ||
| 556 | ExitOnFailure(hr, "Failed to read PFX file: %ls", wzPath); | 558 | ExitOnFailure(hr, "Failed to read PFX file: %ls", wzPath); |
| 559 | |||
| 560 | cbData = (DWORD)size; | ||
| 557 | } | 561 | } |
| 558 | else | 562 | else |
| 559 | { | 563 | { |
