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:
Jake.Stine 2009-12-01 05:13:38 +00:00
parent 1ea29b0e62
commit 3dfdf5029c
1 changed files with 10 additions and 2 deletions

View File

@ -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);