ntdll: Fix use-after-free.
commit8a3e0d686ea4cbff33dc45bb63e71f132c22797a
authorAkihiro Sagawa <sagawa.aki@gmail.com>
Sun, 29 Aug 2021 12:35:14 +0000 (29 21:35 +0900)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 30 Aug 2021 20:49:58 +0000 (30 22:49 +0200)
tree0c1892d7418d05cb041d98d780773cd5d2c5517d
parent8756ae39632cba6d6548d4c1e4eaa21e98353813
ntdll: Fix use-after-free.

Fixes a regression introduced by 76f949577aac88bbde4e9e7b904587f5bc8c808d.
nt_name or redir is used in open_unix_file() because attr.ObjectName
points to either of them.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51702
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/ntdll/unix/process.c