Commit 0aad594d authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

shell32: Use existing buffer rather than copying, and potentially truncating, a…

shell32: Use existing buffer rather than copying, and potentially truncating, a filename prior to executing it.
parent 726acf0f
......@@ -1797,6 +1797,7 @@ static BOOL SHELL_execute( LPSHELLEXECUTEINFOW sei, SHELL_ExecuteW32 execfunc )
/* terminate previous command string after the quote character */
*end = '\0';
lpFile = wfileName;
}
else
{
......@@ -1827,12 +1828,10 @@ static BOOL SHELL_execute( LPSHELLEXECUTEINFOW sei, SHELL_ExecuteW32 execfunc )
}
}
lstrcpynW(wfileName, sei_tmp.lpFile,sizeof(wfileName)/sizeof(WCHAR));
lpFile = sei_tmp.lpFile;
}
} else
lstrcpynW(wfileName, sei_tmp.lpFile,sizeof(wfileName)/sizeof(WCHAR));
lpFile = wfileName;
lpFile = sei_tmp.lpFile;
wcmd = wcmdBuffer;
len = lstrlenW(wszApplicationName) + 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment