VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Format/FormatCom.cpp
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2020-08-06 18:17:27 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2020-08-06 18:48:52 +0200
commitcb7fb0a46a8f8bdff817a03ab5059290b6315fb9 (patch)
treea5346b9539cddae2cbc5447cd466ad37621838ef /src/Format/FormatCom.cpp
parentf3bc81dc70794f7bc9ddb1607733cb4dfe315eec (diff)
downloadVeraCrypt-cb7fb0a46a8f8bdff817a03ab5059290b6315fb9.tar.gz
VeraCrypt-cb7fb0a46a8f8bdff817a03ab5059290b6315fb9.zip
Windows: Fix crash when using portable 32-bit "VeraCrypt Format.exe"/"VeraCrypt.exe" on a 64-bit machine where VeraCrypt is already installed
Diffstat (limited to 'src/Format/FormatCom.cpp')
-rw-r--r--src/Format/FormatCom.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Format/FormatCom.cpp b/src/Format/FormatCom.cpp
index 4acf7a3e..7c155600 100644
--- a/src/Format/FormatCom.cpp
+++ b/src/Format/FormatCom.cpp
@@ -96,7 +96,7 @@ public:
}
virtual int STDMETHODCALLTYPE AnalyzeHiddenVolumeHost (
- LONG_PTR hwndDlg, int *driveNo, __int64 hiddenVolHostSize, int *realClusterSize, __int64 *nbrFreeClusters)
+ __int64 hwndDlg, int *driveNo, __int64 hiddenVolHostSize, int *realClusterSize, __int64 *nbrFreeClusters)
{
return ::AnalyzeHiddenVolumeHost (
(HWND) hwndDlg, driveNo, hiddenVolHostSize, realClusterSize, nbrFreeClusters);
@@ -283,7 +283,7 @@ extern "C" int UacAnalyzeHiddenVolumeHost (HWND hwndDlg, int *driveNo, __int64 h
CoInitialize (NULL);
if (ComGetInstance (hwndDlg, &tc))
- r = tc->AnalyzeHiddenVolumeHost ((LONG_PTR) hwndDlg, driveNo, hiddenVolHostSize, realClusterSize, nbrFreeClusters);
+ r = tc->AnalyzeHiddenVolumeHost ((__int64) hwndDlg, driveNo, hiddenVolHostSize, realClusterSize, nbrFreeClusters);
else
r = 0;