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
5847aab9
Commit
5847aab9
authored
Nov 09, 2023
by
Alex Henrie
Committed by
Alexandre Julliard
Nov 10, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nsi: Use CRT allocation functions.
parent
01d7780a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
nsi.c
dlls/nsi/nsi.c
+8
-8
No files found.
dlls/nsi/nsi.c
View file @
5847aab9
...
...
@@ -174,7 +174,7 @@ DWORD WINAPI NsiEnumerateObjectsAllParametersEx( struct nsi_enumerate_all_ex *pa
out_size
=
sizeof
(
DWORD
)
+
(
params
->
key_size
+
params
->
rw_size
+
params
->
dynamic_size
+
params
->
static_size
)
*
params
->
count
;
out
=
heap_
alloc
(
out_size
);
out
=
m
alloc
(
out_size
);
if
(
!
out
)
return
ERROR_OUTOFMEMORY
;
in
.
module
=
*
params
->
module
;
...
...
@@ -202,7 +202,7 @@ DWORD WINAPI NsiEnumerateObjectsAllParametersEx( struct nsi_enumerate_all_ex *pa
if
(
params
->
static_size
)
memcpy
(
params
->
static_data
,
ptr
,
params
->
static_size
*
params
->
count
);
}
heap_
free
(
out
);
free
(
out
);
return
err
;
}
...
...
@@ -254,8 +254,8 @@ DWORD WINAPI NsiGetAllParametersEx( struct nsi_get_all_parameters_ex *params )
if
(
device
==
INVALID_HANDLE_VALUE
)
return
GetLastError
();
in
=
heap_
alloc
(
in_size
);
out
=
heap_
alloc
(
out_size
);
in
=
m
alloc
(
in_size
);
out
=
m
alloc
(
out_size
);
if
(
!
in
||
!
out
)
{
err
=
ERROR_OUTOFMEMORY
;
...
...
@@ -284,8 +284,8 @@ DWORD WINAPI NsiGetAllParametersEx( struct nsi_get_all_parameters_ex *params )
}
err:
heap_
free
(
out
);
heap_
free
(
in
);
free
(
out
);
free
(
in
);
return
err
;
}
...
...
@@ -321,7 +321,7 @@ DWORD WINAPI NsiGetParameterEx( struct nsi_get_parameter_ex *params )
if
(
device
==
INVALID_HANDLE_VALUE
)
return
GetLastError
();
in
=
heap_
alloc
(
in_size
);
in
=
m
alloc
(
in_size
);
if
(
!
in
)
return
ERROR_OUTOFMEMORY
;
in
->
module
=
*
params
->
module
;
in
->
first_arg
=
params
->
first_arg
;
...
...
@@ -334,7 +334,7 @@ DWORD WINAPI NsiGetParameterEx( struct nsi_get_parameter_ex *params )
if
(
!
DeviceIoControl
(
device
,
IOCTL_NSIPROXY_WINE_GET_PARAMETER
,
in
,
in_size
,
params
->
data
,
params
->
data_size
,
&
received
,
NULL
))
err
=
GetLastError
();
heap_
free
(
in
);
free
(
in
);
return
err
;
}
...
...
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