[DESK]
authorPierre Schweitzer <pierre@reactos.org>
Sat, 24 Oct 2015 08:21:09 +0000 (08:21 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Sat, 24 Oct 2015 08:21:09 +0000 (08:21 +0000)
Pass a buffer big enough to hold the drive size to _wsplitpath().
This fixes a buffer overrun.

CID 1322097

svn path=/trunk/; revision=69662

reactos/dll/cpl/desk/desk.c

index 9e5c39d..0506bf9 100644 (file)
@@ -219,7 +219,7 @@ InstallScreenSaverW(
     IN UINT nCmdShow)
 {
     WCHAR pszSystemDir[MAX_PATH];
     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];
     WCHAR pszPath[MAX_PATH];
     WCHAR pszFilename[MAX_PATH];
     WCHAR pszExt[MAX_PATH];