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
parent
76fe77831d
commit
0f75f963ad
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue