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
32f89093
Commit
32f89093
authored
Sep 08, 2008
by
Alexander Nicolaysen Sørnes
Committed by
Alexandre Julliard
Sep 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Convert parts of export handling to unicode.
parent
87a871ef
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
8 deletions
+10
-8
framewnd.c
programs/regedit/framewnd.c
+1
-5
regedit.c
programs/regedit/regedit.c
+8
-2
regproc.c
programs/regedit/regproc.c
+0
-0
regproc.h
programs/regedit/regproc.h
+1
-1
No files found.
programs/regedit/framewnd.c
View file @
32f89093
...
...
@@ -372,11 +372,7 @@ static BOOL ExportRegistryFile(HWND hWnd, BOOL export_branch)
ofn
.
lpTemplateName
=
MAKEINTRESOURCEW
(
IDD_EXPORT_TEMPLATE
);
if
(
GetSaveFileNameW
(
&
ofn
))
{
BOOL
result
;
CHAR
*
fileA
=
GetMultiByteString
(
ofn
.
lpstrFile
);
CHAR
*
sectionA
=
GetMultiByteString
((
LPWSTR
)
ofn
.
lCustData
);
result
=
export_registry_key
(
fileA
,
sectionA
);
HeapFree
(
GetProcessHeap
(),
0
,
fileA
);
HeapFree
(
GetProcessHeap
(),
0
,
sectionA
);
result
=
export_registry_key
(
ofn
.
lpstrFile
,
(
LPWSTR
)
ofn
.
lCustData
);
if
(
!
result
)
{
/*printf("Can't open file \"%s\"\n", ofn.lpstrFile);*/
return
FALSE
;
...
...
programs/regedit/regedit.c
View file @
32f89093
...
...
@@ -196,6 +196,7 @@ static BOOL PerformRegAction(REGEDIT_ACTION action, LPSTR s)
}
case
ACTION_EXPORT
:
{
CHAR
filename
[
MAX_PATH
];
WCHAR
*
filenameW
;
filename
[
0
]
=
'\0'
;
get_file_name
(
&
s
,
filename
);
...
...
@@ -205,14 +206,19 @@ static BOOL PerformRegAction(REGEDIT_ACTION action, LPSTR s)
exit
(
1
);
}
filenameW
=
GetWideString
(
filename
);
if
(
s
[
0
])
{
CHAR
reg_key_name
[
KEY_MAX_LEN
];
WCHAR
*
reg_key_nameW
;
get_file_name
(
&
s
,
reg_key_name
);
export_registry_key
(
filename
,
reg_key_name
);
reg_key_nameW
=
GetWideString
(
reg_key_name
);
export_registry_key
(
filenameW
,
reg_key_nameW
);
HeapFree
(
GetProcessHeap
(),
0
,
reg_key_nameW
);
}
else
{
export_registry_key
(
filename
,
NULL
);
export_registry_key
(
filename
W
,
NULL
);
}
HeapFree
(
GetProcessHeap
(),
0
,
filenameW
);
break
;
}
default:
...
...
programs/regedit/regproc.c
View file @
32f89093
This diff is collapsed.
Click to expand it.
programs/regedit/regproc.h
View file @
32f89093
...
...
@@ -21,7 +21,7 @@
const
CHAR
*
getAppName
(
void
);
BOOL
export_registry_key
(
CHAR
*
file_name
,
CHAR
*
reg_key_name
);
BOOL
export_registry_key
(
WCHAR
*
file_name
,
W
CHAR
*
reg_key_name
);
BOOL
import_registry_file
(
FILE
*
in
);
void
delete_registry_key
(
WCHAR
*
reg_key_name
);
WCHAR
*
GetWideString
(
const
char
*
strA
);
...
...
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