twain_32: Fix the use of an uninitialized variable (Coverity 908).

This commit is contained in:
James Hawkins 2009-03-22 14:31:56 -07:00 committed by Alexandre Julliard
parent 9701da43b0
commit 0b74259f9d
1 changed files with 1 additions and 0 deletions

View File

@ -329,6 +329,7 @@ static void test_resolution(TW_IDENTITY *appid, TW_IDENTITY *source, TW_UINT16 c
"Error [rc %d|cc %d] doing MSG_GETDEFAULT for type 0x%x\n", rc, status.ConditionCode, captype);
if (rc == TWRC_SUCCESS)
{
get_onevalue(cap.hContainer, &val, &type);
ok(type == TWTY_FIX32, "GETDEFAULT for RESOLUTION is not type FIX32, is type %d\n", type);
memcpy(&default_value, &val, sizeof(default_value));
GlobalFree(cap.hContainer);