libobs-d3d11: Fix calling convention of loaded func

Because this did not have WINAPI (stdcall) specified as the calling
convention on the gdi32 export, caused a crash due to stack corruption
on the 32bit version of OBS.
master
jp9000 2019-10-11 17:18:51 -07:00
parent 76fe77831d
commit 0f75f963ad
1 changed files with 1 additions and 1 deletions

View File

@ -377,7 +377,7 @@ static bool set_priority(ID3D11Device *device)
return false;
}
NTSTATUS (*d3dkmt_spspc)(HANDLE, D3DKMT_SCHEDULINGPRIORITYCLASS);
NTSTATUS (WINAPI *d3dkmt_spspc)(HANDLE, D3DKMT_SCHEDULINGPRIORITYCLASS);
d3dkmt_spspc = (decltype(d3dkmt_spspc))GetProcAddress(
gdi32, "D3DKMTSetProcessSchedulingPriorityClass");
if (!d3dkmt_spspc) {