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
716bf4d6
Commit
716bf4d6
authored
Apr 18, 2005
by
Peter Berg Larsen
Committed by
Alexandre Julliard
Apr 18, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Elimination of lstrcpyn, and corrected a potential pointer bug.
parent
f525f182
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
module.c
dlls/dbghelp/module.c
+8
-6
No files found.
dlls/dbghelp/module.c
View file @
716bf4d6
...
...
@@ -35,15 +35,17 @@ WINE_DEFAULT_DEBUG_CHANNEL(dbghelp);
static
void
module_fill_module
(
const
char
*
in
,
char
*
out
,
unsigned
size
)
{
const
char
*
ptr
;
const
char
*
ptr
,
*
end
ptr
;
unsigned
len
;
for
(
ptr
=
in
+
strlen
(
in
)
-
1
;
*
ptr
!=
'/'
&&
*
ptr
!=
'\\'
&&
ptr
>=
in
;
endptr
=
in
+
strlen
(
in
);
for
(
ptr
=
endptr
-
1
;
ptr
>=
in
&&
*
ptr
!=
'/'
&&
*
ptr
!=
'\\'
;
ptr
--
);
if
(
ptr
<
in
||
*
ptr
==
'/'
||
*
ptr
==
'\\'
)
ptr
++
;
lstrcpynA
(
out
,
ptr
,
size
);
len
=
strlen
(
out
);
ptr
++
;
len
=
min
(
endptr
-
ptr
,
size
-
1
);
memcpy
(
out
,
ptr
,
len
);
out
[
len
]
=
'\0'
;
if
(
len
>
4
&&
(
!
strcasecmp
(
&
out
[
len
-
4
],
".dll"
)
||
!
strcasecmp
(
&
out
[
len
-
4
],
".exe"
)))
out
[
len
-
4
]
=
'\0'
;
...
...
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