mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:26:10 +00:00
shell32: Minor cleanup of SHELL_execute (Clang).
Signed-off-by: André Hentschel <nerv@dawncrow.de> Signed-off-by: Andrew Eikum <aeikum@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
798fd5bf27
commit
2cff59ed5c
1 changed files with 1 additions and 5 deletions
|
@ -1565,7 +1565,6 @@ static BOOL SHELL_execute( LPSHELLEXECUTEINFOW sei, SHELL_ExecuteW32 execfunc )
|
|||
WCHAR *wszApplicationName, *wszParameters, *wszDir, *wcmd;
|
||||
DWORD dwApplicationNameLen = MAX_PATH+2;
|
||||
DWORD parametersLen = sizeof(parametersBuffer) / sizeof(WCHAR);
|
||||
DWORD dirLen = sizeof(dirBuffer) / sizeof(WCHAR);
|
||||
DWORD wcmdLen = sizeof(wcmdBuffer) / sizeof(WCHAR);
|
||||
DWORD len;
|
||||
SHELLEXECUTEINFOW sei_tmp; /* modifiable copy of SHELLEXECUTEINFO struct */
|
||||
|
@ -1625,11 +1624,8 @@ static BOOL SHELL_execute( LPSHELLEXECUTEINFOW sei, SHELL_ExecuteW32 execfunc )
|
|||
if (sei_tmp.lpDirectory)
|
||||
{
|
||||
len = lstrlenW(sei_tmp.lpDirectory) + 1;
|
||||
if (len > dirLen)
|
||||
{
|
||||
if (len > sizeof(dirBuffer) / sizeof(WCHAR))
|
||||
wszDir = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR));
|
||||
dirLen = len;
|
||||
}
|
||||
strcpyW(wszDir, sei_tmp.lpDirectory);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue