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
7b246524
Commit
7b246524
authored
Nov 02, 2023
by
Alex Henrie
Committed by
Alexandre Julliard
Nov 03, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msasn1: Use CRT allocation functions.
parent
02634d83
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
main.c
dlls/msasn1/main.c
+4
-5
No files found.
dlls/msasn1/main.c
View file @
7b246524
...
...
@@ -24,7 +24,6 @@
#include "winbase.h"
#include "msasn1.h"
#include "wine/heap.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
msasn1
);
...
...
@@ -41,7 +40,7 @@ ASN1module_t WINAPI ASN1_CreateModule(ASN1uint32_t ver, ASN1encodingrule_e rule,
if
(
!
encoder
||
!
decoder
||
!
freemem
||
!
size
)
return
module
;
module
=
heap_
alloc
(
sizeof
(
*
module
));
module
=
m
alloc
(
sizeof
(
*
module
));
if
(
module
)
{
module
->
nModuleName
=
magic
;
...
...
@@ -75,7 +74,7 @@ void WINAPI ASN1_CloseModule(ASN1module_t module)
{
TRACE
(
"(%p)
\n
"
,
module
);
heap_
free
(
module
);
free
(
module
);
}
ASN1error_e
WINAPI
ASN1_CreateEncoder
(
ASN1module_t
module
,
ASN1encoding_t
*
encoder
,
ASN1octet_t
*
buf
,
...
...
@@ -88,7 +87,7 @@ ASN1error_e WINAPI ASN1_CreateEncoder(ASN1module_t module, ASN1encoding_t *encod
if
(
!
module
||
!
encoder
)
return
ASN1_ERR_BADARGS
;
enc
=
heap_
alloc
(
sizeof
(
*
enc
));
enc
=
m
alloc
(
sizeof
(
*
enc
));
if
(
!
enc
)
{
return
ASN1_ERR_MEMORY
;
...
...
@@ -138,7 +137,7 @@ ASN1error_e WINAPI ASN1_CreateDecoder(ASN1module_t module, ASN1decoding_t *decod
if
(
!
module
||
!
decoder
)
return
ASN1_ERR_BADARGS
;
dec
=
heap_
alloc
(
sizeof
(
*
dec
));
dec
=
m
alloc
(
sizeof
(
*
dec
));
if
(
!
dec
)
{
return
ASN1_ERR_MEMORY
;
...
...
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