mirror of
https://github.com/reactos/reactos.git
synced 2025-07-30 19:41:57 +00:00
[0.4.9][SHELL32] Squashed port of several RunDlg and ShellExecuteW() fixes
This is a big backport, that brings us closer to releases/0.4.14/0.4.14-release-10-g1b0b852 The main motivation is to fix the regression: CORE-6412 'FoxitReader4 starts directly instead of launching setup wizard' which regressed by SVN r56438 == gite5491506f1
By porting back the following commits: 0.4.15-dev-2883-g33c7c91b36
CORE-17351 CORE-16898 (#3797) Improve performance of Start-Run Dialog Box Options 0.4.14-dev-1016-g4e721f780e
CORE-12266 (#1854) [SHELL32] This fixes the ERROR_DDE_FAIL in the 'www.google.de' testcase 0.4.13-dev-790-g0f16d44b66
CORE-6412 + CORE-12927 but in return we have to fix all the callers of ShellExecuteW() that relied on this ancient hack-code, and we do this by picking 0.4.13-dev-930-gcb77f1701f
CORE-16299 [SHELL32][STOBJECT] ShellExecuteW() params part2 0.4.13-dev-860-g944aba1fcc
CORE-16299 [SHELL32] ShellExecuteW() params part1 (#1833) 0.4.12-dev-94-g932a812c66
CORE-15434 [SHELL32] shlexec.cpp UNICODE_NULL Add backslash if path was like C: (#1152) 0.4.12-dev-49-gfad9f6677a
CORE-15434 [SHELL32] dialogs.cpp (#1117) Addendum 0.4.12-dev-48-gc64d31e9b8
CORE-15434 [BROWSEUI] Add backslash for directory (#1121) C: C:\ 0.4.12-dev-36-g472787ffea
CORE-15431 (#1117) Crash on %SYSTEMROOT% 0.4.12-dev-19-g06d717e3bc
CORE-15431 (#1111) Enable Environment Variables 0.4.10-dev-446-gdb13b422b3
(#737) shlexec.cpp to avoid regression CORE-14886 "regsvr32 can no longer register dlls" 0.4.10-dev-419-gbfcbda227f
(#665) Multiple parameters dialogs.cpp, shlexec.cpp, sdk/include/reactis/undocshell.h 0.4.10-dev-335-ge018ccea4b
CORE-14469 (#681) [SHELL32] lpDirectory must have priority in ShellExecuteEx 0.4.10-dev-238-gc84f398306
CORE-14583 (#593) base/shell/explorer/traywnd.cpp 0.4.10-dev-106-g222534a5a2
IDS_FILE_NOT_FOUND from that unrelated commit was reused to display errors of the RunDlg
This commit is contained in:
parent
1711b13f21
commit
28f0841970
42 changed files with 361 additions and 54 deletions
|
@ -365,7 +365,13 @@ public:
|
|||
|
||||
m_RunFileDlgOwner = hwnd;
|
||||
|
||||
RunFileDlg(hwnd, NULL, NULL, NULL, NULL, RFF_CALCDIRECTORY);
|
||||
// build the default directory from two environment variables
|
||||
CStringW strDefaultDir, strHomePath;
|
||||
strDefaultDir.GetEnvironmentVariable(L"HOMEDRIVE");
|
||||
strHomePath.GetEnvironmentVariable(L"HOMEPATH");
|
||||
strDefaultDir += strHomePath;
|
||||
|
||||
RunFileDlg(hwnd, NULL, (LPCWSTR)strDefaultDir, NULL, NULL, RFF_CALCDIRECTORY);
|
||||
|
||||
m_RunFileDlgOwner = NULL;
|
||||
::DestroyWindow(hwnd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue