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
db941dd0
Commit
db941dd0
authored
Oct 28, 2006
by
Andrew Talbot
Committed by
Alexandre Julliard
Oct 30, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Cast-qual warnings fix.
parent
7da1d6d1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
source.c
dlls/dbghelp/source.c
+3
-2
No files found.
dlls/dbghelp/source.c
View file @
db941dd0
...
...
@@ -59,6 +59,7 @@ unsigned source_new(struct module* module, const char* base, const char* name)
int
len
;
unsigned
ret
;
const
char
*
full
;
char
*
tmp
=
NULL
;
if
(
!
name
)
return
(
unsigned
)
-
1
;
if
(
!
base
||
*
name
==
'/'
)
...
...
@@ -66,8 +67,8 @@ unsigned source_new(struct module* module, const char* base, const char* name)
else
{
unsigned
bsz
=
strlen
(
base
);
char
*
tmp
=
HeapAlloc
(
GetProcessHeap
(),
0
,
bsz
+
1
+
strlen
(
name
)
+
1
);
tmp
=
HeapAlloc
(
GetProcessHeap
(),
0
,
bsz
+
1
+
strlen
(
name
)
+
1
);
if
(
!
tmp
)
return
(
unsigned
)
-
1
;
full
=
tmp
;
strcpy
(
tmp
,
base
);
...
...
@@ -92,7 +93,7 @@ unsigned source_new(struct module* module, const char* base, const char* name)
strcpy
(
module
->
sources
+
module
->
sources_used
,
full
);
module
->
sources_used
+=
len
;
module
->
sources
[
module
->
sources_used
]
=
'\0'
;
if
(
full
!=
name
)
HeapFree
(
GetProcessHeap
(),
0
,
(
char
*
)
full
);
HeapFree
(
GetProcessHeap
(),
0
,
tmp
);
return
ret
;
}
...
...
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