Fix compatibility with old compiler versions 3.

This commit is contained in:
Gonzalo Exequiel Pedone 2020-10-09 14:45:13 -03:00
parent ea40f960b4
commit 7d3d4be973
No known key found for this signature in database
GPG key ID: B8B09E63E9B85BAF

View file

@ -89,7 +89,7 @@ namespace AkVCam
};
}
WINBOOL CALLBACK AkVCamEnumWindowsProc(HWND handler, LPARAM userData);
WINBOOL AkVCamEnumWindowsProc(HWND handler, LPARAM userData);
AkVCam::BaseFilter::BaseFilter(const GUID &clsid,
const std::string &filterName,
@ -500,7 +500,7 @@ void AkVCam::BaseFilterPrivate::setControls(void *userData,
AkVCamDevicePinCall(deviceId, self, setControls, controls)
}
WINBOOL CALLBACK AkVCamEnumWindowsProc(HWND handler, LPARAM userData)
WINBOOL AkVCamEnumWindowsProc(HWND handler, LPARAM userData)
{
auto handlers = reinterpret_cast<std::vector<HWND> *>(userData);
handlers->push_back(handler);