https://git.reactos.org/?p=reactos.git;a=commitdiff;h=bfb19dd25174d1b886909…
commit bfb19dd25174d1b8869090e8c3d341bb89e7365f
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Sat May 19 05:27:22 2018 +0900
Commit: Hermès BÉLUSCA - MAÏTO <hermes.belusca-maito(a)reactos.org>
CommitDate: Fri May 18 22:27:22 2018 +0200
[SHELL32] Fix usage of DeferWindowPos (fix of #544) (#552)
---
dll/win32/shell32/dialogs/folder_options.cpp | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/dll/win32/shell32/dialogs/folder_options.cpp
b/dll/win32/shell32/dialogs/folder_options.cpp
index 12af778245..b53dd8ce0d 100644
--- a/dll/win32/shell32/dialogs/folder_options.cpp
+++ b/dll/win32/shell32/dialogs/folder_options.cpp
@@ -1622,17 +1622,17 @@ NewExtDlg_OnAdvanced(HWND hwndDlg, NEWEXT_DIALOG *pNewExt)
HDWP hDWP = BeginDeferWindowPos(3);
if (hDWP)
- DeferWindowPos(hDWP, GetDlgItem(hwndDlg, IDOK), NULL,
- rc1.left, rc1.top, rc1.right - rc1.left, rc1.bottom - rc1.top,
- SWP_NOACTIVATE | SWP_NOZORDER);
+ hDWP = DeferWindowPos(hDWP, GetDlgItem(hwndDlg, IDOK), NULL,
+ rc1.left, rc1.top, rc1.right - rc1.left, rc1.bottom -
rc1.top,
+ SWP_NOACTIVATE | SWP_NOZORDER);
if (hDWP)
- DeferWindowPos(hDWP, GetDlgItem(hwndDlg, IDCANCEL), NULL,
- rc2.left, rc2.top, rc2.right - rc2.left, rc2.bottom - rc2.top,
- SWP_NOACTIVATE | SWP_NOZORDER);
+ hDWP = DeferWindowPos(hDWP, GetDlgItem(hwndDlg, IDCANCEL), NULL,
+ rc2.left, rc2.top, rc2.right - rc2.left, rc2.bottom -
rc2.top,
+ SWP_NOACTIVATE | SWP_NOZORDER);
if (hDWP)
- DeferWindowPos(hDWP, hwndDlg, NULL,
- rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top,
- SWP_NOACTIVATE | SWP_NOZORDER);
+ hDWP = DeferWindowPos(hDWP, hwndDlg, NULL,
+ rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top,
+ SWP_NOACTIVATE | SWP_NOZORDER);
if (hDWP)
EndDeferWindowPos(hDWP);