shell32: Fix an uninitialized memory access in SHGetFileInfoW.
authorVincent Povirk <vincent@codeweavers.com>
Mon, 14 Dec 2009 00:59:13 +0000 (18:59 -0600)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 14 Dec 2009 11:07:25 +0000 (12:07 +0100)
commita8c2d4b5bc841b48163811eab92e1c29114d5fdd
tree9e8e82a20b301551ba023b94813a0a2850bdc173
parent3ac34f7416ff660a62abacee9d9bff7cc72d5339
shell32: Fix an uninitialized memory access in SHGetFileInfoW.

If we are passed SHGFI_PIDL, szFullPath is not initialized. If we're passed
the flags PIDL, USEFILEATTRIBUTES, and an icon flag, we will try to use the
uninitialized filename to get the icon. Since the test claims that the
function should return an icon in this case, and we cannot always convert
a pidl to a path, we should just use the pidl.
dlls/shell32/shell32_main.c