Author: khornicek
Date: Sun Feb 5 10:28:42 2017
New Revision: 73699
URL:
http://svn.reactos.org/svn/reactos?rev=73699&view=rev
Log:
[CONTROL]
- Use strsafe functions. CID 515200
Modified:
trunk/reactos/base/applications/control/control.c
Modified: trunk/reactos/base/applications/control/control.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/control/…
==============================================================================
--- trunk/reactos/base/applications/control/control.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/control/control.c [iso-8859-1] Sun Feb 5 10:28:42
2017
@@ -15,6 +15,7 @@
#include <winuser.h>
#include <winreg.h>
#include <shellapi.h>
+#include <strsafe.h>
#include "resource.h"
@@ -41,8 +42,8 @@
* Open a shell folder using "explorer.exe". The passed CLSIDs
* are all subfolders of the "Control Panel" shell folder.
*/
- wcscpy(szParameters,
L"/n,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\\::{21EC2020-3AEA-1069-A2DD-08002B30309D}");
- wcscat(szParameters, lpFolderCLSID);
+ StringCbCopy(szParameters, sizeof(szParameters),
L"/n,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\\::{21EC2020-3AEA-1069-A2DD-08002B30309D}");
+ StringCbCat(szParameters,sizeof(szParameters), lpFolderCLSID);
return (INT_PTR)ShellExecuteW(NULL,
L"open",