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
379c90a0
Commit
379c90a0
authored
Apr 14, 2022
by
Hugh McMaster
Committed by
Alexandre Julliard
Apr 19, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Use wide character string literals in main.c.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
85fb14ff
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
15 deletions
+6
-15
main.c
programs/regedit/main.c
+6
-15
No files found.
programs/regedit/main.c
View file @
379c90a0
...
@@ -34,16 +34,9 @@ WCHAR g_pszDefaultValueName[64];
...
@@ -34,16 +34,9 @@ WCHAR g_pszDefaultValueName[64];
BOOL
ProcessCmdLine
(
WCHAR
*
cmdline
);
BOOL
ProcessCmdLine
(
WCHAR
*
cmdline
);
static
const
WCHAR
hkey_local_machine
[]
=
{
'H'
,
'K'
,
'E'
,
'Y'
,
'_'
,
'L'
,
'O'
,
'C'
,
'A'
,
'L'
,
'_'
,
'M'
,
'A'
,
'C'
,
'H'
,
'I'
,
'N'
,
'E'
,
0
};
const
WCHAR
*
reg_class_namesW
[]
=
{
L"HKEY_LOCAL_MACHINE"
,
L"HKEY_USERS"
,
static
const
WCHAR
hkey_users
[]
=
{
'H'
,
'K'
,
'E'
,
'Y'
,
'_'
,
'U'
,
'S'
,
'E'
,
'R'
,
'S'
,
0
};
L"HKEY_CLASSES_ROOT"
,
L"HKEY_CURRENT_CONFIG"
,
static
const
WCHAR
hkey_classes_root
[]
=
{
'H'
,
'K'
,
'E'
,
'Y'
,
'_'
,
'C'
,
'L'
,
'A'
,
'S'
,
'S'
,
'E'
,
'S'
,
'_'
,
'R'
,
'O'
,
'O'
,
'T'
,
0
};
L"HKEY_CURRENT_USER"
,
L"HKEY_DYN_DATA"
static
const
WCHAR
hkey_current_config
[]
=
{
'H'
,
'K'
,
'E'
,
'Y'
,
'_'
,
'C'
,
'U'
,
'R'
,
'R'
,
'E'
,
'N'
,
'T'
,
'_'
,
'C'
,
'O'
,
'N'
,
'F'
,
'I'
,
'G'
,
0
};
static
const
WCHAR
hkey_current_user
[]
=
{
'H'
,
'K'
,
'E'
,
'Y'
,
'_'
,
'C'
,
'U'
,
'R'
,
'R'
,
'E'
,
'N'
,
'T'
,
'_'
,
'U'
,
'S'
,
'E'
,
'R'
,
0
};
static
const
WCHAR
hkey_dyn_data
[]
=
{
'H'
,
'K'
,
'E'
,
'Y'
,
'_'
,
'D'
,
'Y'
,
'N'
,
'_'
,
'D'
,
'A'
,
'T'
,
'A'
,
0
};
const
WCHAR
*
reg_class_namesW
[]
=
{
hkey_local_machine
,
hkey_users
,
hkey_classes_root
,
hkey_current_config
,
hkey_current_user
,
hkey_dyn_data
};
};
/*******************************************************************************
/*******************************************************************************
...
@@ -56,13 +49,11 @@ HWND hStatusBar;
...
@@ -56,13 +49,11 @@ HWND hStatusBar;
HMENU
hMenuFrame
;
HMENU
hMenuFrame
;
HMENU
hPopupMenus
=
0
;
HMENU
hPopupMenus
=
0
;
UINT
nClipboardFormat
;
UINT
nClipboardFormat
;
const
WCHAR
strClipboardFormat
[]
=
{
'T'
,
'O'
,
'D'
,
'O'
,
':'
,
' '
,
'S'
,
'E'
,
'T'
,
' '
,
'C'
,
'O'
,
'R'
,
'R'
,
'E'
,
'C'
,
'T'
,
' '
,
'F'
,
'O'
,
'R'
,
'M'
,
'A'
,
'T'
,
0
};
#define MAX_LOADSTRING 100
#define MAX_LOADSTRING 100
WCHAR
szTitle
[
MAX_LOADSTRING
];
WCHAR
szTitle
[
MAX_LOADSTRING
];
const
WCHAR
sz
FrameClass
[]
=
{
'R'
,
'e'
,
'g'
,
'E'
,
'd'
,
'i'
,
't'
,
'_'
,
'R'
,
'e'
,
'g'
,
'E'
,
'd'
,
'i'
,
't'
,
0
}
;
const
WCHAR
sz
ChildClass
[]
=
L"REGEDIT"
;
const
WCHAR
sz
ChildClass
[]
=
{
'R'
,
'E'
,
'G'
,
'E'
,
'D'
,
'I'
,
'T'
,
0
}
;
const
WCHAR
sz
FrameClass
[]
=
L"RegEdit_RegEdit"
;
static
BOOL
InitInstance
(
HINSTANCE
hInstance
,
int
nCmdShow
)
static
BOOL
InitInstance
(
HINSTANCE
hInstance
,
int
nCmdShow
)
{
{
...
@@ -96,7 +87,7 @@ static BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
...
@@ -96,7 +87,7 @@ static BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
/* register our hex editor control */
/* register our hex editor control */
HexEdit_Register
();
HexEdit_Register
();
nClipboardFormat
=
RegisterClipboardFormatW
(
strClipboardFormat
);
nClipboardFormat
=
RegisterClipboardFormatW
(
L"TODO: Set correct format"
);
hFrameWnd
=
CreateWindowExW
(
0
,
szFrameClass
,
szTitle
,
hFrameWnd
=
CreateWindowExW
(
0
,
szFrameClass
,
szTitle
,
WS_OVERLAPPEDWINDOW
|
WS_EX_CLIENTEDGE
,
WS_OVERLAPPEDWINDOW
|
WS_EX_CLIENTEDGE
,
...
...
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