mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 12:13:00 +00:00
[SHELL32] Don't leak SetProp (#7347)
This commit is contained in:
parent
042a025835
commit
d4815873fe
2 changed files with 4 additions and 4 deletions
|
@ -681,7 +681,7 @@ BrFolder_OnInitDialog(HWND hWnd, BrFolder *info)
|
|||
LPBROWSEINFOW lpBrowseInfo = info->lpBrowseInfo;
|
||||
|
||||
info->hWnd = hWnd;
|
||||
SetPropW(hWnd, L"__WINE_BRSFOLDERDLG_INFO", info);
|
||||
SetWindowLongPtrW(hWnd, DWLP_USER, (LONG_PTR)info);
|
||||
|
||||
if (lpBrowseInfo->ulFlags & BIF_NEWDIALOGSTYLE)
|
||||
FIXME("flags BIF_NEWDIALOGSTYLE partially implemented\n");
|
||||
|
@ -1225,7 +1225,7 @@ BrFolderDlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||
if (uMsg == WM_INITDIALOG)
|
||||
return BrFolder_OnInitDialog(hWnd, (BrFolder *)lParam);
|
||||
|
||||
BrFolder *info = (BrFolder *)GetPropW(hWnd, L"__WINE_BRSFOLDERDLG_INFO");
|
||||
BrFolder *info = (BrFolder *)GetWindowLongPtrW(hWnd, DWLP_USER);
|
||||
if (!info)
|
||||
return 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue