twain_32: Avoid using an uninitialized variable in the failure path in path in a couple of cases.

This commit is contained in:
Gerald Pfeifer 2015-02-28 14:39:34 +01:00 committed by Alexandre Julliard
parent d4db09d0e9
commit fc324d97bc

View File

@ -71,6 +71,8 @@ static BOOL get_onevalue(TW_HANDLE hcontainer, TW_UINT32 *ret, TW_UINT16 *type)
GlobalUnlock(hcontainer); GlobalUnlock(hcontainer);
return TRUE; return TRUE;
} }
else
*ret = 0;
return FALSE; return FALSE;
} }