shell32: Secure filename copy to fixed size variable wfileName.
This commit is contained in:
parent
bf739cbcc3
commit
3229c3de92
|
@ -1711,10 +1711,10 @@ BOOL SHELL_execute( LPSHELLEXECUTEINFOW sei, SHELL_ExecuteW32 execfunc )
|
|||
}
|
||||
}
|
||||
|
||||
strcpyW(wfileName, sei_tmp.lpFile);
|
||||
lstrcpynW(wfileName, sei_tmp.lpFile,sizeof(wfileName)/sizeof(WCHAR));
|
||||
}
|
||||
} else
|
||||
strcpyW(wfileName, sei_tmp.lpFile);
|
||||
lstrcpynW(wfileName, sei_tmp.lpFile,sizeof(wfileName)/sizeof(WCHAR));
|
||||
|
||||
lpFile = wfileName;
|
||||
|
||||
|
|
Loading…
Reference in New Issue