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
1 changed files with 2 additions and 0 deletions

View File

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