Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
6542c3e8
Commit
6542c3e8
authored
Feb 07, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Feb 08, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reg: Use the global HeapAlloc() wrappers.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4b086877
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
13 deletions
+5
-13
export.c
programs/reg/export.c
+1
-0
import.c
programs/reg/import.c
+1
-0
reg.c
programs/reg/reg.c
+3
-12
reg.h
programs/reg/reg.h
+0
-1
No files found.
programs/reg/export.c
View file @
6542c3e8
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
#include <stdlib.h>
#include <stdlib.h>
#include <wine/unicode.h>
#include <wine/unicode.h>
#include <wine/heap.h>
#include "reg.h"
#include "reg.h"
...
...
programs/reg/import.c
View file @
6542c3e8
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
#include <wine/unicode.h>
#include <wine/unicode.h>
#include <wine/debug.h>
#include <wine/debug.h>
#include <wine/heap.h>
#include "reg.h"
#include "reg.h"
...
...
programs/reg/reg.c
View file @
6542c3e8
...
@@ -21,6 +21,7 @@
...
@@ -21,6 +21,7 @@
#include <stdlib.h>
#include <stdlib.h>
#include <wine/unicode.h>
#include <wine/unicode.h>
#include <wine/debug.h>
#include <wine/debug.h>
#include <wine/heap.h>
#include "reg.h"
#include "reg.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
reg
);
WINE_DEFAULT_DEBUG_CHANNEL
(
reg
);
...
@@ -81,7 +82,7 @@ static const WCHAR newlineW[] = {'\n',0};
...
@@ -81,7 +82,7 @@ static const WCHAR newlineW[] = {'\n',0};
void
*
heap_xalloc
(
size_t
size
)
void
*
heap_xalloc
(
size_t
size
)
{
{
void
*
buf
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
void
*
buf
=
heap_alloc
(
size
);
if
(
!
buf
)
if
(
!
buf
)
{
{
ERR
(
"Out of memory!
\n
"
);
ERR
(
"Out of memory!
\n
"
);
...
@@ -92,12 +93,7 @@ void *heap_xalloc(size_t size)
...
@@ -92,12 +93,7 @@ void *heap_xalloc(size_t size)
void
*
heap_xrealloc
(
void
*
buf
,
size_t
size
)
void
*
heap_xrealloc
(
void
*
buf
,
size_t
size
)
{
{
void
*
new_buf
;
void
*
new_buf
=
heap_realloc
(
buf
,
size
);
if
(
buf
)
new_buf
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
buf
,
size
);
else
new_buf
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
if
(
!
new_buf
)
if
(
!
new_buf
)
{
{
...
@@ -108,11 +104,6 @@ void *heap_xrealloc(void *buf, size_t size)
...
@@ -108,11 +104,6 @@ void *heap_xrealloc(void *buf, size_t size)
return
new_buf
;
return
new_buf
;
}
}
BOOL
heap_free
(
void
*
buf
)
{
return
HeapFree
(
GetProcessHeap
(),
0
,
buf
);
}
void
output_writeconsole
(
const
WCHAR
*
str
,
DWORD
wlen
)
void
output_writeconsole
(
const
WCHAR
*
str
,
DWORD
wlen
)
{
{
DWORD
count
,
ret
;
DWORD
count
,
ret
;
...
...
programs/reg/reg.h
View file @
6542c3e8
...
@@ -27,7 +27,6 @@
...
@@ -27,7 +27,6 @@
/* reg.c */
/* reg.c */
void
*
heap_xalloc
(
size_t
size
);
void
*
heap_xalloc
(
size_t
size
);
void
*
heap_xrealloc
(
void
*
buf
,
size_t
size
);
void
*
heap_xrealloc
(
void
*
buf
,
size_t
size
);
BOOL
heap_free
(
void
*
buf
);
void
output_writeconsole
(
const
WCHAR
*
str
,
DWORD
wlen
);
void
output_writeconsole
(
const
WCHAR
*
str
,
DWORD
wlen
);
void
WINAPIV
output_message
(
unsigned
int
id
,
...);
void
WINAPIV
output_message
(
unsigned
int
id
,
...);
BOOL
ask_confirm
(
unsigned
int
msgid
,
WCHAR
*
reg_info
);
BOOL
ask_confirm
(
unsigned
int
msgid
,
WCHAR
*
reg_info
);
...
...
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