regedit: Remove some unused code.
This commit is contained in:
parent
ba093c6dc0
commit
7bb5df75d3
@ -21,11 +21,9 @@
|
|||||||
#define WIN32_LEAN_AND_MEAN /* Exclude rarely-used stuff from Windows headers */
|
#define WIN32_LEAN_AND_MEAN /* Exclude rarely-used stuff from Windows headers */
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <commctrl.h>
|
#include <commctrl.h>
|
||||||
#include <tchar.h>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
#include "regproc.h"
|
|
||||||
|
|
||||||
#include "wine/debug.h"
|
#include "wine/debug.h"
|
||||||
#include "wine/unicode.h"
|
#include "wine/unicode.h"
|
||||||
@ -39,18 +37,7 @@ static int last_split;
|
|||||||
* Local module support methods
|
* Local module support methods
|
||||||
*/
|
*/
|
||||||
|
|
||||||
LPCTSTR GetRootKeyName(HKEY hRootKey)
|
LPCWSTR 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)
|
|
||||||
{
|
{
|
||||||
if(hRootKey == HKEY_CLASSES_ROOT)
|
if(hRootKey == HKEY_CLASSES_ROOT)
|
||||||
return reg_class_namesW[INDEX_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)
|
if (!bFull && !hRootKey)
|
||||||
return NULL;
|
return NULL;
|
||||||
if (hRootKey)
|
if (hRootKey)
|
||||||
parts[1] = GetRootKeyNameW(hRootKey);
|
parts[1] = GetRootKeyName(hRootKey);
|
||||||
if (bFull) {
|
if (bFull) {
|
||||||
DWORD dwSize = sizeof(text)/sizeof(WCHAR);
|
DWORD dwSize = sizeof(text)/sizeof(WCHAR);
|
||||||
GetComputerNameW(text, &dwSize);
|
GetComputerNameW(text, &dwSize);
|
||||||
|
@ -107,7 +107,6 @@ extern const WCHAR* reg_class_namesW[];
|
|||||||
extern void ShowAboutBox(HWND hWnd);
|
extern void ShowAboutBox(HWND hWnd);
|
||||||
|
|
||||||
/* childwnd.c */
|
/* childwnd.c */
|
||||||
extern LPCTSTR GetRootKeyName(HKEY hRootKey);
|
|
||||||
extern LPWSTR GetItemFullPath(HWND hwndTV, HTREEITEM hItem, BOOL bFull);
|
extern LPWSTR GetItemFullPath(HWND hwndTV, HTREEITEM hItem, BOOL bFull);
|
||||||
extern LRESULT CALLBACK ChildWndProc(HWND, UINT, WPARAM, LPARAM);
|
extern LRESULT CALLBACK ChildWndProc(HWND, UINT, WPARAM, LPARAM);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user