mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-12 11:28:26 -06:00
Windows: Fix Dll hijacking vulnerability affecting installer that allows arbitrary code execution with elevation of privilege (CVE-2016-1281)
This commit is contained in:
@@ -4286,8 +4286,8 @@ void BuildTree (HWND hwndDlg, HWND hTree)
|
||||
return;
|
||||
hBitmapMask = LoadBitmap (hInst, MAKEINTRESOURCE (IDB_DRIVEICON_MASK));
|
||||
|
||||
hList = ImageList_Create (16, 12, ILC_COLOR8|ILC_MASK, 2, 2);
|
||||
if (ImageList_Add (hList, hBitmap, hBitmapMask) == -1)
|
||||
hList = CreateImageList (16, 12, ILC_COLOR8|ILC_MASK, 2, 2);
|
||||
if (AddBitmapToImageList (hList, hBitmap, hBitmapMask) == -1)
|
||||
{
|
||||
DeleteObject (hBitmap);
|
||||
DeleteObject (hBitmapMask);
|
||||
@@ -4306,7 +4306,7 @@ void BuildTree (HWND hwndDlg, HWND hTree)
|
||||
return;
|
||||
hBitmapMask = LoadBitmap (hInst, MAKEINTRESOURCE (IDB_SYS_DRIVEICON_MASK));
|
||||
|
||||
if (ImageList_Add (hList, hBitmap, hBitmapMask) == -1)
|
||||
if (AddBitmapToImageList (hList, hBitmap, hBitmapMask) == -1)
|
||||
{
|
||||
DeleteObject (hBitmap);
|
||||
DeleteObject (hBitmapMask);
|
||||
@@ -8663,7 +8663,6 @@ int WINAPI wWinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, wchar_t *lpsz
|
||||
if (BootEncObj == NULL)
|
||||
AbortProcess ("INIT_SYS_ENC");
|
||||
|
||||
InitCommonControls ();
|
||||
InitApp (hInstance, lpszCommandLine);
|
||||
|
||||
RegisterRedTick(hInstance);
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="comctl32.lib setupapi.lib version.lib ..\Crypto\Debug\crypto.lib"
|
||||
AdditionalDependencies="..\Crypto\Debug\crypto.lib"
|
||||
OutputFile="$(OutDir)/VeraCrypt.exe"
|
||||
LinkIncremental="2"
|
||||
GenerateManifest="false"
|
||||
@@ -166,7 +166,7 @@
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="comctl32.lib setupapi.lib version.lib ..\Crypto\x64\Debug\crypto.lib"
|
||||
AdditionalDependencies="..\Crypto\x64\Debug\crypto.lib"
|
||||
OutputFile="$(OutDir)/VeraCrypt.exe"
|
||||
LinkIncremental="2"
|
||||
GenerateManifest="false"
|
||||
@@ -254,7 +254,7 @@
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="comctl32.lib setupapi.lib version.lib ..\Crypto\Release\crypto.lib"
|
||||
AdditionalDependencies="..\Crypto\Release\crypto.lib"
|
||||
OutputFile="$(OutDir)/VeraCrypt.exe"
|
||||
LinkIncremental="1"
|
||||
GenerateManifest="false"
|
||||
@@ -345,7 +345,7 @@
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="comctl32.lib setupapi.lib version.lib ..\Crypto\x64\Release\crypto.lib"
|
||||
AdditionalDependencies="..\Crypto\x64\Release\crypto.lib"
|
||||
OutputFile="$(OutDir)/VeraCrypt.exe"
|
||||
LinkIncremental="1"
|
||||
GenerateManifest="false"
|
||||
|
||||
Reference in New Issue
Block a user