Avoid 'clobbered by longjmp' warnings.
This commit is contained in:
parent
cdd9a4a5b4
commit
6f163b56b5
|
@ -75,10 +75,11 @@ static unsigned DRIVER_GetNumberOfModuleRefs(HMODULE hModule, WINE_DRIVER** foun
|
|||
*/
|
||||
LPWINE_DRIVER DRIVER_FindFromHDrvr(HDRVR hDrvr)
|
||||
{
|
||||
LPWINE_DRIVER d = (LPWINE_DRIVER)hDrvr;
|
||||
LPWINE_DRIVER d;
|
||||
|
||||
__TRY
|
||||
{
|
||||
d = (LPWINE_DRIVER)hDrvr;
|
||||
if (d && d->dwMagic != WINE_DI_MAGIC) d = NULL;
|
||||
}
|
||||
__EXCEPT(NULL)
|
||||
|
|
|
@ -440,11 +440,11 @@ LPWINE_MLD MMDRV_Get(HANDLE _hndl, UINT type, BOOL bCanBeID)
|
|||
if (hndl >= llTypes[type].wMaxId &&
|
||||
hndl != (UINT16)-1 && hndl != (UINT)-1) {
|
||||
if (hndl & 0x8000) {
|
||||
hndl = hndl & ~0x8000;
|
||||
if (hndl < sizeof(MM_MLDrvs) / sizeof(MM_MLDrvs[0])) {
|
||||
mld = MM_MLDrvs[hndl];
|
||||
UINT idx = hndl & ~0x8000;
|
||||
if (idx < sizeof(MM_MLDrvs) / sizeof(MM_MLDrvs[0])) {
|
||||
__TRY
|
||||
{
|
||||
mld = MM_MLDrvs[idx];
|
||||
if (mld && mld->type != type) mld = NULL;
|
||||
}
|
||||
__EXCEPT(NULL)
|
||||
|
@ -453,7 +453,6 @@ LPWINE_MLD MMDRV_Get(HANDLE _hndl, UINT type, BOOL bCanBeID)
|
|||
}
|
||||
__ENDTRY;
|
||||
}
|
||||
hndl = hndl | 0x8000;
|
||||
}
|
||||
}
|
||||
if (mld == NULL && bCanBeID) {
|
||||
|
|
Loading…
Reference in New Issue