reactos/dll/win32/shell32/wine
Joachim Henze 2d9dabac60 [0.4.7][SHELL32] Fix a directory handle leak when browsing folders
A bit of history: in SVN r71528 == git
4322caeede
I tried to fix our explorer often
crashing while browsing directories. It was linked to the fact
that a notification result may arrive while the notification
structure had already been deleted.

The fix for this was actually broken and was leading to a double
leak: the notification structure was leaked. But also the handle
to the directory that had been browsed!
This means that the directory couldn't be modified anymore as
a leaked handle to it was still open.

Actually, when notifications are cancel, the kernel properly
calls the notification routine, but with a specific error code.
So the correct fix is to stop handling that notification when
we receive this error code. This is the correct fix with no leaks.

This commit is a complete r71528 revert with the appropriate fix.

CORE-10941
CORE-12843

cherry picked from commit 0.4.9-dev-144-g
da8a41b97b

Joachim Henze: I suspect that this patch will introduce
CORE-15703 but I think it's an improvement even if it would.
2020-10-06 16:24:44 +02:00
..
brsfolder.c [0.4.7] cherry-pick [SHELL32] SHBrowseForFolderW: Fix creating directories in the desktop and in drives like C: CORE-13925 2017-11-14 20:08:00 +01:00
changenotify.c [0.4.7][SHELL32] Fix a directory handle leak when browsing folders 2020-10-06 16:24:44 +02:00
classes.c
clipboard.c
control.c
cpanel.h
pidl.c
pidl.h
shell32_main.c
shell32_main.h
shellole.c
shellord.c
shellpath.c
shellreg.c
shellstring.c
shlmenu.c
shpolicy.c