wineoss.drv: Clean up DriverProc.

This commit is contained in:
Maarten Lankhorst 2010-04-21 13:45:28 +02:00 committed by Alexandre Julliard
parent ba7d2cd3ee
commit d54dcdfedb
1 changed files with 10 additions and 26 deletions

View File

@ -61,24 +61,6 @@ static LRESULT OSS_drvFree(void)
return 1;
}
/**************************************************************************
* OSS_drvOpen [internal]
*/
static LRESULT OSS_drvOpen(LPSTR str)
{
TRACE("(%s)\n", str);
return 1;
}
/**************************************************************************
* OSS_drvClose [internal]
*/
static LRESULT OSS_drvClose(DWORD_PTR dwDevID)
{
TRACE("(%08lx)\n", dwDevID);
return 1;
}
#endif
@ -95,16 +77,18 @@ LRESULT CALLBACK OSS_DriverProc(DWORD_PTR dwDevID, HDRVR hDriv, UINT wMsg,
#ifdef HAVE_OSS
case DRV_LOAD: return OSS_drvLoad();
case DRV_FREE: return OSS_drvFree();
case DRV_OPEN: return OSS_drvOpen((LPSTR)dwParam1);
case DRV_CLOSE: return OSS_drvClose(dwDevID);
case DRV_ENABLE: return 1;
case DRV_DISABLE: return 1;
case DRV_QUERYCONFIGURE: return 1;
case DRV_OPEN:
case DRV_CLOSE:
case DRV_ENABLE:
case DRV_DISABLE:
case DRV_QUERYCONFIGURE:
return 1;
case DRV_CONFIGURE: MessageBoxA(0, "OSS MultiMedia Driver !", "OSS Driver", MB_OK); return 1;
case DRV_INSTALL: return DRVCNF_RESTART;
case DRV_REMOVE: return DRVCNF_RESTART;
case DRV_INSTALL:
case DRV_REMOVE:
return DRV_SUCCESS;
#endif
default:
return DefDriverProc(dwDevID, hDriv, wMsg, dwParam1, dwParam2);
return 0;
}
}