diff options
Diffstat (limited to 'src/ExpandVolume/DlgExpandVolume.cpp')
-rw-r--r-- | src/ExpandVolume/DlgExpandVolume.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ExpandVolume/DlgExpandVolume.cpp b/src/ExpandVolume/DlgExpandVolume.cpp index 966650bb..db2aa9fd 100644 --- a/src/ExpandVolume/DlgExpandVolume.cpp +++ b/src/ExpandVolume/DlgExpandVolume.cpp @@ -476,7 +476,10 @@ void ExpandVolumeWizard (HWND hwndDlg, char *lpszVolume) } if (Randinit() != ERR_SUCCESS) { - nStatus = ERR_PARAMETER_INCORRECT; + if (CryptoAPILastError == ERROR_SUCCESS)
+ nStatus = ERR_RAND_INIT_FAILED;
+ else
+ nStatus = ERR_CAPI_INIT_FAILED; goto error; } |