Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
85846bfb
Commit
85846bfb
authored
May 04, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taskmgr: Avoid wcsncpy().
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4da6dc63
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
perfdata.c
programs/taskmgr/perfdata.c
+2
-2
No files found.
programs/taskmgr/perfdata.c
View file @
85846bfb
...
@@ -328,7 +328,7 @@ BOOL PerfDataGetImageName(ULONG Index, LPWSTR lpImageName, int nMaxCount)
...
@@ -328,7 +328,7 @@ BOOL PerfDataGetImageName(ULONG Index, LPWSTR lpImageName, int nMaxCount)
EnterCriticalSection
(
&
PerfDataCriticalSection
);
EnterCriticalSection
(
&
PerfDataCriticalSection
);
if
(
Index
<
ProcessCount
)
{
if
(
Index
<
ProcessCount
)
{
wcsncpy
(
lpImageName
,
pPerfData
[
Index
].
ImageName
,
nMaxCount
);
lstrcpynW
(
lpImageName
,
pPerfData
[
Index
].
ImageName
,
nMaxCount
);
if
(
pPerfData
[
Index
].
Wow64Process
&&
if
(
pPerfData
[
Index
].
Wow64Process
&&
nMaxCount
-
lstrlenW
(
lpImageName
)
>
4
/* =lstrlenW(proc32W) */
)
nMaxCount
-
lstrlenW
(
lpImageName
)
>
4
/* =lstrlenW(proc32W) */
)
lstrcatW
(
lpImageName
,
proc32W
);
lstrcatW
(
lpImageName
,
proc32W
);
...
@@ -363,7 +363,7 @@ BOOL PerfDataGetUserName(ULONG Index, LPWSTR lpUserName, int nMaxCount)
...
@@ -363,7 +363,7 @@ BOOL PerfDataGetUserName(ULONG Index, LPWSTR lpUserName, int nMaxCount)
EnterCriticalSection
(
&
PerfDataCriticalSection
);
EnterCriticalSection
(
&
PerfDataCriticalSection
);
if
(
Index
<
ProcessCount
)
{
if
(
Index
<
ProcessCount
)
{
wcsncpy
(
lpUserName
,
pPerfData
[
Index
].
UserName
,
nMaxCount
);
lstrcpynW
(
lpUserName
,
pPerfData
[
Index
].
UserName
,
nMaxCount
);
bSuccessful
=
TRUE
;
bSuccessful
=
TRUE
;
}
else
{
}
else
{
bSuccessful
=
FALSE
;
bSuccessful
=
FALSE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment