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
de2fc93b
Commit
de2fc93b
authored
Jun 14, 2007
by
Francois Gouget
Committed by
Alexandre Julliard
Jun 14, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Remove setAppName() as the application name is hardcoded anyway.
parent
021c4dba
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
18 deletions
+5
-18
regedit.c
programs/regedit/regedit.c
+5
-1
regproc.c
programs/regedit/regproc.c
+0
-16
regproc.h
programs/regedit/regproc.h
+0
-1
No files found.
programs/regedit/regedit.c
View file @
de2fc93b
...
...
@@ -59,6 +59,11 @@ typedef enum {
}
REGEDIT_ACTION
;
const
CHAR
*
getAppName
(
void
)
{
return
"regedit"
;
}
/******************************************************************************
* Copies file name from command line string to the buffer.
* Rewinds the command line string pointer to the next non-space character
...
...
@@ -229,7 +234,6 @@ BOOL ProcessCmdLine(LPSTR lpCmdLine)
LPSTR
s
=
lpCmdLine
;
/* command line pointer */
CHAR
ch
=
*
s
;
/* current character */
setAppName
(
"regedit"
);
while
(
ch
&&
((
ch
==
'-'
)
||
(
ch
==
'/'
)))
{
char
chu
;
char
ch2
;
...
...
programs/regedit/regproc.c
View file @
de2fc93b
...
...
@@ -40,8 +40,6 @@ static HKEY currentKeyClass = 0;
static
HKEY
currentKeyHandle
=
0
;
static
BOOL
bTheKeyIsOpen
=
FALSE
;
static
const
CHAR
*
app_name
=
"UNKNOWN"
;
static
const
CHAR
*
reg_class_names
[]
=
{
"HKEY_LOCAL_MACHINE"
,
"HKEY_USERS"
,
"HKEY_CLASSES_ROOT"
,
"HKEY_CURRENT_CONFIG"
,
"HKEY_CURRENT_USER"
,
"HKEY_DYN_DATA"
...
...
@@ -1229,17 +1227,3 @@ void delete_registry_key(CHAR *reg_key_name)
}
HeapFree
(
GetProcessHeap
(),
0
,
branch_name
);
}
/******************************************************************************
* Sets the application name. Then application name is used in the error
* reporting.
*/
void
setAppName
(
const
CHAR
*
name
)
{
app_name
=
name
;
}
const
CHAR
*
getAppName
(
void
)
{
return
app_name
;
}
programs/regedit/regproc.h
View file @
de2fc93b
...
...
@@ -39,7 +39,6 @@ BOOL export_registry_key(CHAR *file_name, CHAR *reg_key_name);
BOOL
import_registry_file
(
LPTSTR
filename
);
void
delete_registry_key
(
CHAR
*
reg_key_name
);
void
setAppName
(
const
CHAR
*
name
);
const
CHAR
*
getAppName
(
void
);
void
processRegLines
(
FILE
*
in
,
CommandAPI
command
);
...
...
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