shell32: Secure filename copy to fixed size variable wfileName.

This commit is contained in:
Tomasz Jezierski 2008-04-22 09:39:48 +02:00 committed by Alexandre Julliard
parent bf739cbcc3
commit 3229c3de92
1 changed files with 2 additions and 2 deletions

View File

@ -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;