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
56c57f8a
Commit
56c57f8a
authored
Mar 29, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 29, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wer: Use CRT memory allocation functions.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0e4f31ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
main.c
dlls/wer/main.c
+3
-3
No files found.
dlls/wer/main.c
View file @
56c57f8a
...
...
@@ -18,12 +18,12 @@
*/
#include <stdarg.h>
#include <stdlib.h>
#include "windef.h"
#include "winbase.h"
#include "winreg.h"
#include "werapi.h"
#include "wine/heap.h"
#include "wine/list.h"
#include "wine/debug.h"
...
...
@@ -219,7 +219,7 @@ HRESULT WINAPI WerReportCloseHandle(HREPORT hreport)
if
(
!
found
)
return
E_INVALIDARG
;
heap_
free
(
report
);
free
(
report
);
return
S_OK
;
}
...
...
@@ -259,7 +259,7 @@ HRESULT WINAPI WerReportCreate(PCWSTR eventtype, WER_REPORT_TYPE reporttype, PWE
return
E_INVALIDARG
;
}
report
=
heap_alloc_zero
(
FIELD_OFFSET
(
report_t
,
eventtype
[
lstrlenW
(
eventtype
)
+
1
]));
report
=
calloc
(
1
,
FIELD_OFFSET
(
report_t
,
eventtype
[
lstrlenW
(
eventtype
)
+
1
]));
if
(
!
report
)
return
__HRESULT_FROM_WIN32
(
ERROR_OUTOFMEMORY
);
...
...
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