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
aaf908ab
Commit
aaf908ab
authored
Aug 27, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Fix a structure size check for 64-bit.
parent
fdf191a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
devinst.c
dlls/setupapi/devinst.c
+3
-4
No files found.
dlls/setupapi/devinst.c
View file @
aaf908ab
...
...
@@ -2916,8 +2916,7 @@ BOOL WINAPI SetupDiGetDeviceInterfaceDetailA(
{
struct
DeviceInfoSet
*
set
=
DeviceInfoSet
;
struct
InterfaceInfo
*
info
;
DWORD
bytesNeeded
=
offsetof
(
SP_DEVICE_INTERFACE_DETAIL_DATA_A
,
DevicePath
)
+
1
;
DWORD
bytesNeeded
=
FIELD_OFFSET
(
SP_DEVICE_INTERFACE_DETAIL_DATA_A
,
DevicePath
[
1
]);
BOOL
ret
=
FALSE
;
TRACE
(
"(%p, %p, %p, %d, %p, %p)
\n
"
,
DeviceInfoSet
,
...
...
@@ -2937,8 +2936,8 @@ BOOL WINAPI SetupDiGetDeviceInterfaceDetailA(
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
FALSE
;
}
if
(
DeviceInterfaceDetailData
&&
(
DeviceInterfaceDetailData
->
cbSize
!=
offsetof
(
SP_DEVICE_INTERFACE_DETAIL_DATA_A
,
DevicePath
)
+
sizeof
(
char
)
))
if
(
DeviceInterfaceDetailData
&&
DeviceInterfaceDetailData
->
cbSize
!=
sizeof
(
SP_DEVICE_INTERFACE_DETAIL_DATA_A
))
{
SetLastError
(
ERROR_INVALID_USER_BUFFER
);
return
FALSE
;
...
...
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