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
c3e8298a
Commit
c3e8298a
authored
Mar 07, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Mar 07, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpr: Replace const pointer parameters with correct pointers to const.
parent
aefbef00
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
wnet.c
dlls/mpr/wnet.c
+6
-6
No files found.
dlls/mpr/wnet.c
View file @
c3e8298a
...
@@ -447,7 +447,7 @@ static PWNetEnumerator _createContextEnumerator(DWORD dwScope, DWORD dwType,
...
@@ -447,7 +447,7 @@ static PWNetEnumerator _createContextEnumerator(DWORD dwScope, DWORD dwType,
* if not all members of the array could be thunked, and something else on
* if not all members of the array could be thunked, and something else on
* failure.
* failure.
*/
*/
static
DWORD
_thunkNetResourceArrayWToA
(
const
LPNETRESOURCEW
lpNetArrayIn
,
static
DWORD
_thunkNetResourceArrayWToA
(
const
NETRESOURCEW
*
lpNetArrayIn
,
LPDWORD
lpcCount
,
LPVOID
lpBuffer
,
LPDWORD
lpBufferSize
)
LPDWORD
lpcCount
,
LPVOID
lpBuffer
,
LPDWORD
lpBufferSize
)
{
{
DWORD
i
,
numToThunk
,
totalBytes
,
ret
;
DWORD
i
,
numToThunk
,
totalBytes
,
ret
;
...
@@ -466,7 +466,7 @@ static DWORD _thunkNetResourceArrayWToA(const LPNETRESOURCEW lpNetArrayIn,
...
@@ -466,7 +466,7 @@ static DWORD _thunkNetResourceArrayWToA(const LPNETRESOURCEW lpNetArrayIn,
for
(
i
=
0
,
numToThunk
=
0
,
totalBytes
=
0
;
i
<
*
lpcCount
;
i
++
)
for
(
i
=
0
,
numToThunk
=
0
,
totalBytes
=
0
;
i
<
*
lpcCount
;
i
++
)
{
{
LPNETRESOURCEW
lpNet
=
lpNetArrayIn
+
i
;
const
NETRESOURCEW
*
lpNet
=
lpNetArrayIn
+
i
;
totalBytes
+=
sizeof
(
NETRESOURCEA
);
totalBytes
+=
sizeof
(
NETRESOURCEA
);
if
(
lpNet
->
lpLocalName
)
if
(
lpNet
->
lpLocalName
)
...
@@ -488,7 +488,7 @@ static DWORD _thunkNetResourceArrayWToA(const LPNETRESOURCEW lpNetArrayIn,
...
@@ -488,7 +488,7 @@ static DWORD _thunkNetResourceArrayWToA(const LPNETRESOURCEW lpNetArrayIn,
for
(
i
=
0
;
i
<
numToThunk
;
i
++
)
for
(
i
=
0
;
i
<
numToThunk
;
i
++
)
{
{
LPNETRESOURCEA
lpNetOut
=
(
LPNETRESOURCEA
)
lpBuffer
+
i
;
LPNETRESOURCEA
lpNetOut
=
(
LPNETRESOURCEA
)
lpBuffer
+
i
;
LPNETRESOURCEW
lpNetIn
=
lpNetArrayIn
+
i
;
const
NETRESOURCEW
*
lpNetIn
=
lpNetArrayIn
+
i
;
memcpy
(
lpNetOut
,
lpNetIn
,
sizeof
(
NETRESOURCEA
));
memcpy
(
lpNetOut
,
lpNetIn
,
sizeof
(
NETRESOURCEA
));
/* lie about string lengths, we already verified how many
/* lie about string lengths, we already verified how many
...
@@ -532,7 +532,7 @@ static DWORD _thunkNetResourceArrayWToA(const LPNETRESOURCEW lpNetArrayIn,
...
@@ -532,7 +532,7 @@ static DWORD _thunkNetResourceArrayWToA(const LPNETRESOURCEW lpNetArrayIn,
* if not all members of the array could be thunked, and something else on
* if not all members of the array could be thunked, and something else on
* failure.
* failure.
*/
*/
static
DWORD
_thunkNetResourceArrayAToW
(
const
LPNETRESOURCEA
lpNetArrayIn
,
static
DWORD
_thunkNetResourceArrayAToW
(
const
NETRESOURCEA
*
lpNetArrayIn
,
LPDWORD
lpcCount
,
LPVOID
lpBuffer
,
LPDWORD
lpBufferSize
)
LPDWORD
lpcCount
,
LPVOID
lpBuffer
,
LPDWORD
lpBufferSize
)
{
{
DWORD
i
,
numToThunk
,
totalBytes
,
ret
;
DWORD
i
,
numToThunk
,
totalBytes
,
ret
;
...
@@ -551,7 +551,7 @@ static DWORD _thunkNetResourceArrayAToW(const LPNETRESOURCEA lpNetArrayIn,
...
@@ -551,7 +551,7 @@ static DWORD _thunkNetResourceArrayAToW(const LPNETRESOURCEA lpNetArrayIn,
for
(
i
=
0
,
numToThunk
=
0
,
totalBytes
=
0
;
i
<
*
lpcCount
;
i
++
)
for
(
i
=
0
,
numToThunk
=
0
,
totalBytes
=
0
;
i
<
*
lpcCount
;
i
++
)
{
{
LPNETRESOURCEA
lpNet
=
lpNetArrayIn
+
i
;
const
NETRESOURCEA
*
lpNet
=
lpNetArrayIn
+
i
;
totalBytes
+=
sizeof
(
NETRESOURCEW
);
totalBytes
+=
sizeof
(
NETRESOURCEW
);
if
(
lpNet
->
lpLocalName
)
if
(
lpNet
->
lpLocalName
)
...
@@ -573,7 +573,7 @@ static DWORD _thunkNetResourceArrayAToW(const LPNETRESOURCEA lpNetArrayIn,
...
@@ -573,7 +573,7 @@ static DWORD _thunkNetResourceArrayAToW(const LPNETRESOURCEA lpNetArrayIn,
for
(
i
=
0
;
i
<
numToThunk
;
i
++
)
for
(
i
=
0
;
i
<
numToThunk
;
i
++
)
{
{
LPNETRESOURCEW
lpNetOut
=
(
LPNETRESOURCEW
)
lpBuffer
+
i
;
LPNETRESOURCEW
lpNetOut
=
(
LPNETRESOURCEW
)
lpBuffer
+
i
;
LPNETRESOURCEA
lpNetIn
=
lpNetArrayIn
+
i
;
const
NETRESOURCEA
*
lpNetIn
=
lpNetArrayIn
+
i
;
memcpy
(
lpNetOut
,
lpNetIn
,
sizeof
(
NETRESOURCEW
));
memcpy
(
lpNetOut
,
lpNetIn
,
sizeof
(
NETRESOURCEW
));
/* lie about string lengths, we already verified how many
/* lie about string lengths, we already verified how many
...
...
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