1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-22 11:13:21 +00:00

Updated 32 bit windows so SetClassLongPtrA and SetWindowLongPtrA maps to SetClassLongA and SetWindowLongA

This commit is contained in:
Bryan Roe
2022-04-22 12:00:55 -07:00
parent a37eb032ff
commit bae07c6be7
2 changed files with 15 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@@ -56,10 +56,22 @@ function WindowsMessagePump(options)
this._user32.CreateMethod('RegisterClassExW');
this._user32.CreateMethod('ReleaseCapture');
this._user32.CreateMethod('SendMessageW');
this._user32.CreateMethod('SetClassLongA');
this._user32.CreateMethod('SetClassLongPtrA');
this._user32.CreateMethod('SetWindowLongA');
if (GM.PointerSize == 4)
{
this._user32.CreateMethod({ method: 'SetClassLongA', newName: 'SetClassLongPtrA' });
this._user32.CreateMethod({ method: 'SetWindowLongA', newName: 'SetWindowLongPtrA' });
}
else
{
this._user32.CreateMethod('SetClassLongPtrA');
this._user32.CreateMethod('SetWindowLongPtrA');
}
this._user32.CreateMethod('SetCursor');
this._user32.CreateMethod('SetWindowLongPtrA');
this._user32.CreateMethod('SetWindowPos');
this._user32.CreateMethod('SetWindowTextW');
this._user32.CreateMethod('ShowWindow');