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
232d10e7
Commit
232d10e7
authored
Jan 31, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Jan 31, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hid: Use msvcrt allocation functions.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
397859dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
hidd.c
dlls/hid/hidd.c
+4
-3
No files found.
dlls/hid/hidd.c
View file @
232d10e7
...
...
@@ -21,6 +21,7 @@
#include <stdarg.h>
#include <stdlib.h>
#include "wine/debug.h"
...
...
@@ -55,7 +56,7 @@ static BOOL sync_ioctl(HANDLE file, DWORD code, void *in_buf, DWORD in_len, void
BOOLEAN
WINAPI
HidD_FreePreparsedData
(
PHIDP_PREPARSED_DATA
preparsed_data
)
{
TRACE
(
"preparsed_data %p.
\n
"
,
preparsed_data
);
HeapFree
(
GetProcessHeap
(),
0
,
preparsed_data
);
free
(
preparsed_data
);
return
TRUE
;
}
...
...
@@ -142,11 +143,11 @@ BOOLEAN WINAPI HidD_GetPreparsedData( HANDLE file, PHIDP_PREPARSED_DATA *prepars
if
(
!
sync_ioctl
(
file
,
IOCTL_HID_GET_COLLECTION_INFORMATION
,
NULL
,
0
,
&
info
,
sizeof
(
info
)
))
return
FALSE
;
if
(
!
(
data
=
HeapAlloc
(
GetProcessHeap
(),
0
,
info
.
DescriptorSize
)))
return
FALSE
;
if
(
!
(
data
=
malloc
(
info
.
DescriptorSize
)))
return
FALSE
;
if
(
!
sync_ioctl
(
file
,
IOCTL_HID_GET_COLLECTION_DESCRIPTOR
,
NULL
,
0
,
data
,
info
.
DescriptorSize
))
{
HeapFree
(
GetProcessHeap
(),
0
,
data
);
free
(
data
);
return
FALSE
;
}
*
preparsed_data
=
data
;
...
...
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