Commit 3229c3de authored by Tomasz Jezierski's avatar Tomasz Jezierski Committed by Alexandre Julliard

shell32: Secure filename copy to fixed size variable wfileName.

parent bf739cbc
......@@ -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;
......
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