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
26d8f334
Commit
26d8f334
authored
Feb 17, 2022
by
Hans Leidekker
Committed by
Alexandre Julliard
Feb 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ncrypt: Fix resizing property array.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d576a61f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
main.c
dlls/ncrypt/main.c
+4
-4
No files found.
dlls/ncrypt/main.c
View file @
26d8f334
...
...
@@ -312,7 +312,7 @@ SECURITY_STATUS WINAPI NCryptOpenStorageProvider(NCRYPT_PROV_HANDLE *provider, c
static
SECURITY_STATUS
set_object_property
(
struct
object
*
object
,
const
WCHAR
*
name
,
BYTE
*
value
,
DWORD
value_size
)
{
struct
object_property
*
property
=
&
object
->
properties
[
object
->
num_properties
]
;
struct
object_property
*
property
;
FIXME
(
"check duplicates
\n
"
);
if
(
!
object
->
num_properties
)
...
...
@@ -322,18 +322,18 @@ static SECURITY_STATUS set_object_property(struct object *object, const WCHAR *n
ERR
(
"Error allocating memory."
);
return
NTE_NO_MEMORY
;
}
object
->
num_properties
++
;
property
=
&
object
->
properties
[
object
->
num_properties
++
]
;
}
else
{
struct
object_property
*
tmp
;
if
(
!
(
tmp
=
realloc
(
object
->
properties
,
sizeof
(
*
property
)
*
object
->
num_properties
+
1
)))
if
(
!
(
tmp
=
realloc
(
object
->
properties
,
sizeof
(
*
property
)
*
(
object
->
num_properties
+
1
)
)))
{
ERR
(
"Error allocating memory."
);
return
NTE_NO_MEMORY
;
}
object
->
properties
=
tmp
;
object
->
num_properties
++
;
property
=
&
object
->
properties
[
object
->
num_properties
++
]
;
}
memset
(
property
,
0
,
sizeof
(
*
property
));
...
...
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