[SHELL32] Prevent use after free
authorHervé Poussineau <hpoussin@reactos.org>
Mon, 12 Sep 2022 20:59:49 +0000 (22:59 +0200)
committerHervé Poussineau <hpoussin@reactos.org>
Fri, 23 Sep 2022 21:07:26 +0000 (23:07 +0200)
commitf3506ee626bc2c32bb38a06011c7616ae2c93459
tree490862c124bb936928dc3891939b98b1c709d91b
parentf79e80c520a2e39baf024a5d81450eebde73b1bd
[SHELL32] Prevent use after free

'buffer' is local to the function, while m_sPath is an instance class member.
Fix that by calling the IShellLink::Resolve() function, which will allocate
and fill the m_sPath variable.

CORE-15229
dll/win32/shell32/CShellLink.cpp