projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Sync with trunk r63502.
[reactos.git]
/
base
/
applications
/
mscutils
/
servman
/
stop_dependencies.c
diff --git
a/base/applications/mscutils/servman/stop_dependencies.c
b/base/applications/mscutils/servman/stop_dependencies.c
index
5ef2276
..
559002c
100644
(file)
--- a/
base/applications/mscutils/servman/stop_dependencies.c
+++ b/
base/applications/mscutils/servman/stop_dependencies.c
@@
-32,9
+32,9
@@
AddServiceToList(LPWSTR *lpServiceList,
if (lpNewList)
{
/* Copy the service name */
if (lpNewList)
{
/* Copy the service name */
-
wcscpy_s
(lpNewList,
- dwToAddSize,
- lpServiceToAdd);
+
StringCchCopy
(lpNewList,
+
dwToAddSize,
+
lpServiceToAdd);
/* Add the double null char */
lpNewList[dwToAddSize - 1] = L'\0';
/* Add the double null char */
lpNewList[dwToAddSize - 1] = L'\0';
@@
-68,9
+68,9
@@
AddServiceToList(LPWSTR *lpServiceList,
if (lpNewList)
{
/* Copy the service name */
if (lpNewList)
{
/* Copy the service name */
-
wcscpy_s
(&lpNewList[dwCurSize - 1],
- dwToAddSize,
- lpServiceToAdd);
+
StringCchCopy
(&lpNewList[dwCurSize - 1],
+
dwToAddSize,
+
lpServiceToAdd);
/* Add the double null char */
lpNewList[dwCurSize + dwToAddSize - 1] = L'\0';
/* Add the double null char */
lpNewList[dwCurSize + dwToAddSize - 1] = L'\0';