Fix compatibility with old compiler versions.

This commit is contained in:
Gonzalo Exequiel Pedone 2020-10-09 13:51:17 -03:00
parent 26a4175e70
commit 5e7efa154b
No known key found for this signature in database
GPG key ID: B8B09E63E9B85BAF

View file

@ -484,7 +484,7 @@ void AkVCam::BaseFilterPrivate::devicesChanged(void *userData,
UNUSED(devices);
AkLogFunction();
std::vector<HWND> handlers;
EnumWindows(enumWindowsProc, LPARAM(&handlers));
EnumWindows(WNDENUMPROC(enumWindowsProc), LPARAM(&handlers));
for (auto &handler: handlers)
SendMessage(handler, WM_DEVICECHANGE, DBT_DEVNODES_CHANGED, 0);