fix SetProcessAffinityMask() prototype (was missing WINAPI, i.e. the all important stdcall) (patch 1731976)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46379 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -996,7 +996,7 @@ bool wxThread::SetConcurrency(size_t WXUNUSED_IN_WINCE(level))
|
|||||||
// set it: we can't link to SetProcessAffinityMask() because it doesn't
|
// set it: we can't link to SetProcessAffinityMask() because it doesn't
|
||||||
// exist in Win9x, use RT binding instead
|
// exist in Win9x, use RT binding instead
|
||||||
|
|
||||||
typedef BOOL (*SETPROCESSAFFINITYMASK)(HANDLE, DWORD);
|
typedef BOOL (WINAPI *SETPROCESSAFFINITYMASK)(HANDLE, DWORD_PTR);
|
||||||
|
|
||||||
// can use static var because we're always in the main thread here
|
// can use static var because we're always in the main thread here
|
||||||
static SETPROCESSAFFINITYMASK pfnSetProcessAffinityMask = NULL;
|
static SETPROCESSAFFINITYMASK pfnSetProcessAffinityMask = NULL;
|
||||||
|
Reference in New Issue
Block a user