Pass a buffer big enough to hold the drive size to _wsplitpath().
This fixes a buffer overrun.

CID 1322097

svn path=/trunk/; revision=69662
This commit is contained in:
Pierre Schweitzer 2015-10-24 08:21:09 +00:00
parent 34c9b63005
commit 71f36c710d

View file

@ -219,7 +219,7 @@ InstallScreenSaverW(
IN UINT nCmdShow)
{
WCHAR pszSystemDir[MAX_PATH];
WCHAR pszDrive[2];
WCHAR pszDrive[3];
WCHAR pszPath[MAX_PATH];
WCHAR pszFilename[MAX_PATH];
WCHAR pszExt[MAX_PATH];