VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/Keyfiles.c
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2024-11-15 00:41:07 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2024-11-15 00:41:07 +0100
commit43ad4f93eb2c64bb2c278cdbefdfe0250293868e (patch)
tree838b3dd1d2ff69c3e7d162d0347d08435c745cb5 /src/Common/Keyfiles.c
parent117d8dd046fcfc8e85c8aadf96556eb9f445695c (diff)
downloadVeraCrypt-43ad4f93eb2c64bb2c278cdbefdfe0250293868e.tar.gz
VeraCrypt-43ad4f93eb2c64bb2c278cdbefdfe0250293868e.zip
Windows: Fix various compiler warnings
Diffstat (limited to 'src/Common/Keyfiles.c')
-rw-r--r--src/Common/Keyfiles.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Common/Keyfiles.c b/src/Common/Keyfiles.c
index 6d9907cd..b21e371d 100644
--- a/src/Common/Keyfiles.c
+++ b/src/Common/Keyfiles.c
@@ -270,7 +270,7 @@ BOOL KeyFilesApply (HWND hwndDlg, Password *password, KeyFile *firstKeyFile, con
unsigned __int32 writePos = 0;
size_t totalRead = 0;
- for (size_t i = 0; i < keyfileData.size(); i++)
+ for (i = 0; i < keyfileData.size(); i++)
{
crc = UPDC32 (keyfileData[i], crc);
@@ -496,7 +496,7 @@ BOOL CALLBACK KeyFilesDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPa
// set the text colour in (HDC)wParam
SetBkMode((HDC)wParam,TRANSPARENT);
SetTextColor((HDC)wParam, RGB(255,0,0));
- return (BOOL)GetSysColorBrush(COLOR_MENU);
+ return (BOOL)(INT_PTR)GetSysColorBrush(COLOR_MENU);
}
}
return 0;