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
c9d4b515
Commit
c9d4b515
authored
Nov 02, 2023
by
Alex Henrie
Committed by
Alexandre Julliard
Nov 03, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
diasymreader: Use CRT allocation functions.
parent
06294b0d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
main.c
dlls/diasymreader/main.c
+2
-2
writer.c
dlls/diasymreader/writer.c
+4
-5
No files found.
dlls/diasymreader/main.c
View file @
c9d4b515
...
@@ -95,7 +95,7 @@ static ULONG WINAPI ClassFactoryImpl_Release(IClassFactory *iface)
...
@@ -95,7 +95,7 @@ static ULONG WINAPI ClassFactoryImpl_Release(IClassFactory *iface)
TRACE
(
"(%p) refcount=%lu
\n
"
,
iface
,
ref
);
TRACE
(
"(%p) refcount=%lu
\n
"
,
iface
,
ref
);
if
(
ref
==
0
)
if
(
ref
==
0
)
HeapFree
(
GetProcessHeap
(),
0
,
This
);
free
(
This
);
return
ref
;
return
ref
;
}
}
...
@@ -133,7 +133,7 @@ static HRESULT ClassFactoryImpl_Constructor(const classinfo *info, REFIID riid,
...
@@ -133,7 +133,7 @@ static HRESULT ClassFactoryImpl_Constructor(const classinfo *info, REFIID riid,
*
ppv
=
NULL
;
*
ppv
=
NULL
;
This
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
ClassFactoryImpl
));
This
=
malloc
(
sizeof
(
ClassFactoryImpl
));
if
(
!
This
)
return
E_OUTOFMEMORY
;
if
(
!
This
)
return
E_OUTOFMEMORY
;
This
->
IClassFactory_iface
.
lpVtbl
=
&
ClassFactoryImpl_Vtbl
;
This
->
IClassFactory_iface
.
lpVtbl
=
&
ClassFactoryImpl_Vtbl
;
...
...
dlls/diasymreader/writer.c
View file @
c9d4b515
...
@@ -28,7 +28,6 @@
...
@@ -28,7 +28,6 @@
#include "wine/mscvpdb.h"
#include "wine/mscvpdb.h"
#include "wine/debug.h"
#include "wine/debug.h"
#include "wine/heap.h"
#include "diasymreader_private.h"
#include "diasymreader_private.h"
...
@@ -107,7 +106,7 @@ static ULONG WINAPI SymDocumentWriter_Release(ISymUnmanagedDocumentWriter *iface
...
@@ -107,7 +106,7 @@ static ULONG WINAPI SymDocumentWriter_Release(ISymUnmanagedDocumentWriter *iface
if
(
ref
==
0
)
if
(
ref
==
0
)
{
{
heap_
free
(
This
);
free
(
This
);
}
}
return
ref
;
return
ref
;
...
@@ -187,7 +186,7 @@ static ULONG WINAPI SymWriter_Release(ISymUnmanagedWriter5 *iface)
...
@@ -187,7 +186,7 @@ static ULONG WINAPI SymWriter_Release(ISymUnmanagedWriter5 *iface)
{
{
This
->
lock
.
DebugInfo
->
Spare
[
0
]
=
0
;
This
->
lock
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
This
->
lock
);
DeleteCriticalSection
(
&
This
->
lock
);
heap_
free
(
This
);
free
(
This
);
}
}
return
ref
;
return
ref
;
...
@@ -205,7 +204,7 @@ static HRESULT WINAPI SymWriter_DefineDocument(ISymUnmanagedWriter5 *iface, cons
...
@@ -205,7 +204,7 @@ static HRESULT WINAPI SymWriter_DefineDocument(ISymUnmanagedWriter5 *iface, cons
if
(
!
pRetVal
)
if
(
!
pRetVal
)
return
E_POINTER
;
return
E_POINTER
;
result
=
heap_
alloc
(
sizeof
(
*
result
));
result
=
m
alloc
(
sizeof
(
*
result
));
if
(
!
result
)
if
(
!
result
)
return
E_OUTOFMEMORY
;
return
E_OUTOFMEMORY
;
...
@@ -596,7 +595,7 @@ HRESULT SymWriter_CreateInstance(REFIID iid, void **ppv)
...
@@ -596,7 +595,7 @@ HRESULT SymWriter_CreateInstance(REFIID iid, void **ppv)
SymWriter
*
This
;
SymWriter
*
This
;
HRESULT
hr
;
HRESULT
hr
;
This
=
heap_
alloc
(
sizeof
(
*
This
));
This
=
m
alloc
(
sizeof
(
*
This
));
if
(
!
This
)
if
(
!
This
)
return
E_OUTOFMEMORY
;
return
E_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