mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
Changed DWORD to use explicit cast to PDWORD
This commit is contained in:
parent
37a5fdf2f3
commit
3c7320c7ac
@ -137,7 +137,7 @@ set_cpu_affinity(PN_uint32 mask) const {
|
||||
if (gp != 0 && sp != 0) {
|
||||
DWORD proc_mask;
|
||||
DWORD sys_mask;
|
||||
if (gp(GetCurrentProcess(), &proc_mask, &sys_mask)) {
|
||||
if (gp(GetCurrentProcess(), (PDWORD_PTR)&proc_mask, (PDWORD_PTR)&sys_mask)) {
|
||||
// make sure we don't reference CPUs that don't exist
|
||||
proc_mask = mask & sys_mask;
|
||||
if (proc_mask) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user