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
f5fe9a6c
Commit
f5fe9a6c
authored
Mar 09, 2023
by
Hugh McMaster
Committed by
Alexandre Julliard
Mar 09, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Allow export_key() to return TRUE.
We don't handle errors in export_registry_data() anyway. Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=54491
parent
b7ae278f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
framewnd.c
programs/regedit/framewnd.c
+1
-1
regproc.c
programs/regedit/regproc.c
+3
-5
No files found.
programs/regedit/framewnd.c
View file @
f5fe9a6c
...
...
@@ -500,7 +500,7 @@ static BOOL ExportRegistryFile(HWND hWnd)
BOOL
result
;
result
=
export_registry_key
(
ofn
.
lpstrFile
,
(
LPWSTR
)
ofn
.
lCustData
,
ofn
.
nFilterIndex
);
if
(
!
result
)
{
/*printf("Can't open file \"%s\"\n", ofn.lpstrFile);*/
FIXME
(
"Registry export failed.
\n
"
);
return
FALSE
;
}
}
else
{
...
...
programs/regedit/regproc.c
View file @
f5fe9a6c
...
...
@@ -1328,7 +1328,7 @@ static void export_key_name(FILE *fp, WCHAR *name, BOOL unicode)
#define MAX_SUBKEY_LEN 257
static
int
export_registry_data
(
FILE
*
fp
,
HKEY
key
,
WCHAR
*
path
,
BOOL
unicode
)
static
void
export_registry_data
(
FILE
*
fp
,
HKEY
key
,
WCHAR
*
path
,
BOOL
unicode
)
{
LONG
rc
;
DWORD
max_value_len
=
256
,
value_len
;
...
...
@@ -1398,7 +1398,6 @@ static int export_registry_data(FILE *fp, HKEY key, WCHAR *path, BOOL unicode)
}
free
(
subkey_name
);
return
0
;
}
static
FILE
*
REGPROC_open_export_file
(
WCHAR
*
file_name
,
BOOL
unicode
)
...
...
@@ -1450,7 +1449,6 @@ static BOOL export_key(WCHAR *file_name, WCHAR *path, BOOL unicode)
HKEY
key_class
,
key
;
WCHAR
*
subkey
;
FILE
*
fp
;
BOOL
ret
;
if
(
!
(
key_class
=
parse_key_name
(
path
,
&
subkey
)))
{
...
...
@@ -1463,12 +1461,12 @@ static BOOL export_key(WCHAR *file_name, WCHAR *path, BOOL unicode)
return
FALSE
;
fp
=
REGPROC_open_export_file
(
file_name
,
unicode
);
ret
=
export_registry_data
(
fp
,
key
,
path
,
unicode
);
export_registry_data
(
fp
,
key
,
path
,
unicode
);
export_newline
(
fp
,
unicode
);
fclose
(
fp
);
RegCloseKey
(
key
);
return
ret
;
return
TRUE
;
}
static
BOOL
export_all
(
WCHAR
*
file_name
,
WCHAR
*
path
,
BOOL
unicode
)
...
...
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