advpack: don't close a handle if it wasn't opened (resend)

Dan Kegel dank at kegel.com
Fri Jun 20 07:46:24 CDT 2008


Avoids referencing an undefined variable.

Fixes valgrind warning:

  Conditional jump or move depends on uninitialised value(s)
    at  RegCloseKey (registry.c:916)
    by  get_dest_dir (advpack.c:105)
    by  set_ldids (advpack.c:171)
    by  TranslateInfStringW (advpack.c:749)
    by  TranslateInfStringA (advpack.c:673)
    by  translateinfstring_test (advpack.c:291)
  Uninitialised value was created by a stack allocation
    at  get_dest_dir (advpack.c:69)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: advpack-get_dest_dir.patch
Type: text/x-diff
Size: 835 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080620/3b6a6eb9/attachment.patch 


More information about the wine-patches mailing list