mirror of https://github.com/PCSX2/pcsx2.git
LilyPad: Yet another minor change to window hook cleanup that probably isn't really needed. "LilyHaxxor" property wasn't always being removed.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2591 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
cd5c262e7f
commit
32c7e80634
|
@ -35,18 +35,15 @@ void WndProcEater::ReleaseExtraProc(ExtraWndProc proc) {
|
|||
if (!numExtraProcs && eatenWndProc) {
|
||||
free(extraProcs);
|
||||
extraProcs = 0;
|
||||
if (hWndEaten && IsWindow(hWndEaten)) {
|
||||
SetWindowLongPtr(hWndEaten, GWLP_WNDPROC, (LONG_PTR)eatenWndProc);
|
||||
}
|
||||
hWndEaten = 0;
|
||||
eatenWndProc = 0;
|
||||
// As numExtraProcs is 0, won't cause recursion if called from Release().
|
||||
Release();
|
||||
}
|
||||
}
|
||||
|
||||
void WndProcEater::Release() {
|
||||
while (numExtraProcs) ReleaseExtraProc(extraProcs[0].proc);
|
||||
RemoveProp( hWndEaten, L"LilyHaxxor" );
|
||||
if (hWndEaten && IsWindow(hWndEaten)) {
|
||||
RemoveProp(hWndEaten, L"LilyHaxxor");
|
||||
SetWindowLongPtr(hWndEaten, GWLP_WNDPROC, (LONG_PTR)eatenWndProc);
|
||||
hWndEaten = 0;
|
||||
eatenWndProc = 0;
|
||||
|
|
Loading…
Reference in New Issue