Browse Source

LVM_QUERYINTERFACE is not implemented on Wine

(cherry picked from commit 27eacef3a4d3aa0c7fe9975fd2acb43cc60f93a0)

Source commit: 77feb24bef40cd5b60fcf08ccd54da583a0f72ed
Martin Prikryl 5 years ago
parent
commit
47f480ccc4
1 changed files with 5 additions and 1 deletions
  1. 5 1
      source/windows/VCLCommon.cpp

+ 5 - 1
source/windows/VCLCommon.cpp

@@ -1088,11 +1088,15 @@ void __fastcall ApplySystemSettingsOnControl(TControl * Control)
     {
       IListView_Win7 * ListViewIntf = NULL;
       SendMessage(IEListView->Handle, LVM_QUERYINTERFACE, reinterpret_cast<WPARAM>(&IID_IListView_Win7), reinterpret_cast<LPARAM>(&ListViewIntf));
-      if (DebugAlwaysTrue(ListViewIntf != NULL))
+      if (ListViewIntf != NULL)
       {
         ListViewIntf->SetSelectionFlags(1, 1);
         ListViewIntf->Release();
       }
+      else
+      {
+        DebugAssert(IsWine());
+      }
     }
   }