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
2f582443
Commit
2f582443
authored
Nov 13, 2006
by
Andrew Talbot
Committed by
Alexandre Julliard
Nov 14, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Cast-qual warning fix.
parent
fde63f97
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
virtcopy.c
dlls/setupapi/virtcopy.c
+4
-2
No files found.
dlls/setupapi/virtcopy.c
View file @
2f582443
...
...
@@ -91,6 +91,7 @@ VHSTR WINAPI vsmStringAdd16(LPCSTR lpszName)
VHSTR
n
;
VHSTR
index
=
0xffff
;
HANDLE
heap
;
LPSTR
str
;
TRACE
(
"add string '%s'
\n
"
,
lpszName
);
/* search whether string already inserted */
...
...
@@ -137,8 +138,9 @@ VHSTR WINAPI vsmStringAdd16(LPCSTR lpszName)
if
(
!
vhstrlist
[
index
])
vhstrlist
[
index
]
=
HeapAlloc
(
heap
,
HEAP_ZERO_MEMORY
,
sizeof
(
VHSTR_STRUCT
));
vhstrlist
[
index
]
->
refcount
=
1
;
vhstrlist
[
index
]
->
pStr
=
HeapAlloc
(
heap
,
0
,
strlen
(
lpszName
)
+
1
);
strcpy
((
LPSTR
)
vhstrlist
[
index
]
->
pStr
,
lpszName
);
str
=
HeapAlloc
(
heap
,
0
,
strlen
(
lpszName
)
+
1
);
strcpy
(
str
,
lpszName
);
vhstrlist
[
index
]
->
pStr
=
str
;
return
index
;
}
...
...
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