mirror of https://github.com/PCSX2/pcsx2.git
Lilypad: bugfix for crashes when used with pcsx2 0.9.6
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2278 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
1ea29b0e62
commit
3dfdf5029c
|
@ -961,7 +961,7 @@ s32 CALLBACK PADopen(void *pDsp) {
|
|||
while (GetWindowLong (hWndTop, GWL_STYLE) & WS_CHILD)
|
||||
hWndTop = GetParent (hWndTop);
|
||||
|
||||
if (!hWndGSProc.SetWndHandle(hWnd) || !hWndTopProc.SetWndHandle(hWndTop)) {
|
||||
if (!hWndGSProc.SetWndHandle(hWnd)) {
|
||||
openCount = 0;
|
||||
return -1;
|
||||
}
|
||||
|
@ -971,7 +971,15 @@ s32 CALLBACK PADopen(void *pDsp) {
|
|||
updateQueued = 0;
|
||||
hWndGSProc.Eat(StatusWndProc, 0);
|
||||
|
||||
if(hWnd != hWndTop) {
|
||||
if (!hWndTopProc.SetWndHandle(hWndTop)) {
|
||||
openCount = 0;
|
||||
return -1;
|
||||
}
|
||||
hWndTopProc.Eat(TitleHackWndProc, 0);
|
||||
}
|
||||
else
|
||||
hWndGSProc.Eat(TitleHackWndProc, 0);
|
||||
|
||||
if (config.forceHide) {
|
||||
hWndGSProc.Eat(HideCursorProc, 0);
|
||||
|
|
Loading…
Reference in New Issue