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
3c3959cf
Commit
3c3959cf
authored
Mar 05, 2013
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Mar 05, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpr: Use offsetof for the size of structs with varlen arrays.
parent
e6f5829a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
pwcache.c
dlls/mpr/pwcache.c
+2
-2
No files found.
dlls/mpr/pwcache.c
View file @
3c3959cf
...
...
@@ -298,8 +298,8 @@ UINT WINAPI WNetEnumCachedPasswords(
continue
;
/* read the value data */
size
=
sizeof
*
entry
-
sizeof
entry
->
abResource
[
0
]
+
val_sz
+
data_sz
;
entry
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
of
*
entry
+
val_sz
+
data_sz
);
size
=
offsetof
(
PASSWORD_CACHE_ENTRY
,
abResource
[
val_sz
+
data_sz
]
)
;
entry
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
memcpy
(
entry
->
abResource
,
val
,
val_sz
);
entry
->
cbEntry
=
size
;
entry
->
cbResource
=
val_sz
;
...
...
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