James Hawkins : twain_32: Fix the use of an uninitialized variable ( Coverity 908).
Alexandre Julliard
julliard at winehq.org
Mon Mar 23 12:34:57 CDT 2009
Module: wine
Branch: master
Commit: 0b74259f9d52e6c90c2412d22bf9a489845a7364
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0b74259f9d52e6c90c2412d22bf9a489845a7364
Author: James Hawkins <truiken at gmail.com>
Date: Sun Mar 22 14:31:56 2009 -0700
twain_32: Fix the use of an uninitialized variable (Coverity 908).
---
dlls/twain_32/tests/dsm.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/twain_32/tests/dsm.c b/dlls/twain_32/tests/dsm.c
index 835f09c..6a53188 100644
--- a/dlls/twain_32/tests/dsm.c
+++ b/dlls/twain_32/tests/dsm.c
@@ -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);
More information about the wine-cvs
mailing list