Browse Source

LVM_QUERYINTERFACE is not implemented on Wine

Source commit: f77755c47a12870d50767cff3ffd56d4342b2e6d
Martin Prikryl 5 years ago
parent
commit
27eacef3a4
1 changed files with 5 additions and 1 deletions
  1. 5 1
      source/windows/VCLCommon.cpp

+ 5 - 1
source/windows/VCLCommon.cpp

@@ -1082,11 +1082,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());
+      }
     }
   }