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
7bb5df75
Commit
7bb5df75
authored
Sep 02, 2008
by
Alexander Nicolaysen Sørnes
Committed by
Alexandre Julliard
Sep 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Remove some unused code.
parent
ba093c6d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
16 deletions
+2
-16
childwnd.c
programs/regedit/childwnd.c
+2
-15
main.h
programs/regedit/main.h
+0
-1
No files found.
programs/regedit/childwnd.c
View file @
7bb5df75
...
...
@@ -21,11 +21,9 @@
#define WIN32_LEAN_AND_MEAN
/* Exclude rarely-used stuff from Windows headers */
#include <windows.h>
#include <commctrl.h>
#include <tchar.h>
#include <stdio.h>
#include "main.h"
#include "regproc.h"
#include "wine/debug.h"
#include "wine/unicode.h"
...
...
@@ -39,18 +37,7 @@ static int last_split;
* Local module support methods
*/
LPCTSTR
GetRootKeyName
(
HKEY
hRootKey
)
{
if
(
hRootKey
==
HKEY_CLASSES_ROOT
)
return
_T
(
"HKEY_CLASSES_ROOT"
);
if
(
hRootKey
==
HKEY_CURRENT_USER
)
return
_T
(
"HKEY_CURRENT_USER"
);
if
(
hRootKey
==
HKEY_LOCAL_MACHINE
)
return
_T
(
"HKEY_LOCAL_MACHINE"
);
if
(
hRootKey
==
HKEY_USERS
)
return
_T
(
"HKEY_USERS"
);
if
(
hRootKey
==
HKEY_CURRENT_CONFIG
)
return
_T
(
"HKEY_CURRENT_CONFIG"
);
if
(
hRootKey
==
HKEY_DYN_DATA
)
return
_T
(
"HKEY_DYN_DATA"
);
return
_T
(
"UNKNOWN HKEY, PLEASE REPORT"
);
}
LPCWSTR
GetRootKeyNameW
(
HKEY
hRootKey
)
LPCWSTR
GetRootKeyName
(
HKEY
hRootKey
)
{
if
(
hRootKey
==
HKEY_CLASSES_ROOT
)
return
reg_class_namesW
[
INDEX_HKEY_CLASSES_ROOT
];
...
...
@@ -142,7 +129,7 @@ static LPWSTR GetPathRoot(HWND hwndTV, HTREEITEM hItem, BOOL bFull) {
if
(
!
bFull
&&
!
hRootKey
)
return
NULL
;
if
(
hRootKey
)
parts
[
1
]
=
GetRootKeyName
W
(
hRootKey
);
parts
[
1
]
=
GetRootKeyName
(
hRootKey
);
if
(
bFull
)
{
DWORD
dwSize
=
sizeof
(
text
)
/
sizeof
(
WCHAR
);
GetComputerNameW
(
text
,
&
dwSize
);
...
...
programs/regedit/main.h
View file @
7bb5df75
...
...
@@ -107,7 +107,6 @@ extern const WCHAR* reg_class_namesW[];
extern
void
ShowAboutBox
(
HWND
hWnd
);
/* childwnd.c */
extern
LPCTSTR
GetRootKeyName
(
HKEY
hRootKey
);
extern
LPWSTR
GetItemFullPath
(
HWND
hwndTV
,
HTREEITEM
hItem
,
BOOL
bFull
);
extern
LRESULT
CALLBACK
ChildWndProc
(
HWND
,
UINT
,
WPARAM
,
LPARAM
);
...
...
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