Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
b1f603d8
Commit
b1f603d8
authored
Jul 11, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
psapi/tests: Use MAX_PATH size for arrays holding file paths.
parent
fb5cfacc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
psapi_main.c
dlls/psapi/tests/psapi_main.c
+7
-7
No files found.
dlls/psapi/tests/psapi_main.c
View file @
b1f603d8
...
...
@@ -76,7 +76,7 @@ static void test_EnumProcesses(void)
static
void
test_EnumProcessModules
(
void
)
{
char
buffer
[
200
]
=
"C:
\\
windows
\\
system32
\\
msinfo32.exe"
;
char
buffer
[
MAX_PATH
]
=
"C:
\\
windows
\\
system32
\\
msinfo32.exe"
;
PROCESS_INFORMATION
pi
=
{
0
};
STARTUPINFOA
si
=
{
0
};
void
*
cookie
;
...
...
@@ -140,7 +140,7 @@ static void test_EnumProcessModules(void)
if
(
sizeof
(
void
*
)
==
8
)
{
MODULEINFO
info
;
char
name
[
40
];
char
name
[
MAX_PATH
];
HMODULE
hmods
[
3
];
strcpy
(
buffer
,
"C:
\\
windows
\\
syswow64
\\
msinfo32.exe"
);
...
...
@@ -224,8 +224,8 @@ static BOOL test_EnumProcessModulesEx_snapshot(HANDLE proc, struct moduleex_snap
{
void
*
cookie
;
DWORD
needed
;
char
buffer
[
80
];
char
buffer2
[
80
];
char
buffer
[
MAX_PATH
];
char
buffer2
[
MAX_PATH
];
MODULEINFO
info
;
int
i
,
j
;
BOOL
ret
;
...
...
@@ -334,7 +334,7 @@ static BOOL snapshot_are_disjoint(const struct moduleex_snapshot* seta, const st
static
void
snapshot_check_first_main_module
(
const
struct
moduleex_snapshot
*
snap
,
HANDLE
proc
,
const
char
*
filename
)
{
char
buffer
[
80
];
char
buffer
[
MAX_PATH
];
MODULEINFO
info
;
const
char
*
modname
;
BOOL
ret
;
...
...
@@ -359,7 +359,7 @@ static void snapshot_check_first_main_module(const struct moduleex_snapshot* sna
static
unsigned
int
snapshot_count_in_dir
(
const
struct
moduleex_snapshot
*
snap
,
HANDLE
proc
,
const
char
*
dirname
)
{
unsigned
int
count
=
0
;
char
buffer
[
128
];
char
buffer
[
MAX_PATH
];
size_t
dirname_len
=
strlen
(
dirname
);
BOOL
ret
;
int
i
;
...
...
@@ -375,7 +375,7 @@ static unsigned int snapshot_count_in_dir(const struct moduleex_snapshot* snap,
static
void
test_EnumProcessModulesEx
(
void
)
{
char
buffer
[
200
]
=
"C:
\\
windows
\\
system32
\\
msinfo32.exe"
;
char
buffer
[
MAX_PATH
]
=
"C:
\\
windows
\\
system32
\\
msinfo32.exe"
;
PROCESS_INFORMATION
pi
=
{
0
};
STARTUPINFOA
si
=
{
0
};
void
*
cookie
;
...
...
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