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
505a9e02
Commit
505a9e02
authored
Feb 07, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Feb 07, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Use the global HeapAlloc() wrappers.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
06a3a322
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
11 additions
and
14 deletions
+11
-14
childwnd.c
programs/regedit/childwnd.c
+2
-1
edit.c
programs/regedit/edit.c
+1
-0
framewnd.c
programs/regedit/framewnd.c
+1
-0
hexedit.c
programs/regedit/hexedit.c
+1
-0
listview.c
programs/regedit/listview.c
+1
-0
regedit.c
programs/regedit/regedit.c
+1
-0
regproc.c
programs/regedit/regproc.c
+3
-12
regproc.h
programs/regedit/regproc.h
+0
-1
treeview.c
programs/regedit/treeview.c
+1
-0
No files found.
programs/regedit/childwnd.c
View file @
505a9e02
...
...
@@ -27,8 +27,9 @@
#include "regproc.h"
#include "wine/debug.h"
#include "wine/heap.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
regedit
);
ChildWnd
*
g_pChildWnd
;
...
...
programs/regedit/edit.c
View file @
505a9e02
...
...
@@ -29,6 +29,7 @@
#include <shellapi.h>
#include <shlwapi.h>
#include "wine/heap.h"
#include "wine/unicode.h"
#include "main.h"
#include "regproc.h"
...
...
programs/regedit/framewnd.c
View file @
505a9e02
...
...
@@ -31,6 +31,7 @@
#include "main.h"
#include "regproc.h"
#include "wine/debug.h"
#include "wine/heap.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
regedit
);
...
...
programs/regedit/hexedit.c
View file @
505a9e02
...
...
@@ -35,6 +35,7 @@
#include "winnls.h"
#include "commctrl.h"
#include "wine/heap.h"
#include "main.h"
#include "regproc.h"
...
...
programs/regedit/listview.c
View file @
505a9e02
...
...
@@ -27,6 +27,7 @@
#include "main.h"
#include "regproc.h"
#include "wine/heap.h"
#include "wine/unicode.h"
static
INT
Image_String
;
...
...
programs/regedit/regedit.c
View file @
505a9e02
...
...
@@ -24,6 +24,7 @@
#include <shellapi.h>
#include "wine/unicode.h"
#include "wine/debug.h"
#include "wine/heap.h"
#include "regproc.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
regedit
);
...
...
programs/regedit/regproc.c
View file @
505a9e02
...
...
@@ -29,6 +29,7 @@
#include <windows.h>
#include <wine/unicode.h>
#include <wine/debug.h>
#include <wine/heap.h>
#include "regproc.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
regedit
);
...
...
@@ -46,7 +47,7 @@ static HKEY reg_class_keys[] = {
void
*
heap_xalloc
(
size_t
size
)
{
void
*
buf
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
void
*
buf
=
heap_alloc
(
size
);
if
(
!
buf
)
{
ERR
(
"Out of memory!
\n
"
);
...
...
@@ -57,12 +58,7 @@ void *heap_xalloc(size_t size)
void
*
heap_xrealloc
(
void
*
buf
,
size_t
size
)
{
void
*
new_buf
;
if
(
buf
)
new_buf
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
buf
,
size
);
else
new_buf
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
void
*
new_buf
=
heap_realloc
(
buf
,
size
);
if
(
!
new_buf
)
{
...
...
@@ -73,11 +69,6 @@ void *heap_xrealloc(void *buf, size_t size)
return
new_buf
;
}
BOOL
heap_free
(
void
*
buf
)
{
return
HeapFree
(
GetProcessHeap
(),
0
,
buf
);
}
/******************************************************************************
* Allocates memory and converts input from multibyte to wide chars
* Returned string must be freed by the caller
...
...
programs/regedit/regproc.h
View file @
505a9e02
...
...
@@ -30,7 +30,6 @@ void WINAPIV error_exit(unsigned int id, ...);
char
*
GetMultiByteString
(
const
WCHAR
*
strW
);
void
*
heap_xalloc
(
size_t
size
);
void
*
heap_xrealloc
(
void
*
buf
,
size_t
size
);
BOOL
heap_free
(
void
*
buf
);
BOOL
import_registry_file
(
FILE
*
reg_file
);
void
delete_registry_key
(
WCHAR
*
reg_key_name
);
BOOL
export_registry_key
(
WCHAR
*
file_name
,
WCHAR
*
path
,
DWORD
format
);
programs/regedit/treeview.c
View file @
505a9e02
...
...
@@ -30,6 +30,7 @@
#include <wine/debug.h>
#include <shlwapi.h>
#include "wine/heap.h"
#include "main.h"
#include "regproc.h"
...
...
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