mirror of
https://github.com/reactos/wine.git
synced 2025-01-24 21:10:50 +00:00
cmd: Fix invalid memory access.
This commit is contained in:
parent
cfe52abcf4
commit
4e91fa5f6b
@ -1330,7 +1330,7 @@ void WCMD_execute (const WCHAR *command, const WCHAR *redirects,
|
||||
* Changing default drive has to be handled as a special case.
|
||||
*/
|
||||
|
||||
if ((cmd[1] == ':') && IsCharAlphaW(cmd[0]) && (strlenW(cmd) == 2)) {
|
||||
if ((strlenW(cmd) == 2) && (cmd[1] == ':') && IsCharAlphaW(cmd[0])) {
|
||||
WCHAR envvar[5];
|
||||
WCHAR dir[MAX_PATH];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user