mirror of
https://github.com/reactos/reactos.git
synced 2024-11-04 22:00:55 +00:00
[regedit] Amine Khaldi: Remove unused variables
svn path=/trunk/; revision=44557
This commit is contained in:
parent
d65cf93246
commit
5ed5d97905
4 changed files with 3 additions and 11 deletions
|
@ -87,10 +87,9 @@ static void OnPaint(HWND hWnd)
|
|||
{
|
||||
PAINTSTRUCT ps;
|
||||
RECT rt;
|
||||
HDC hdc;
|
||||
|
||||
GetClientRect(hWnd, &rt);
|
||||
hdc = BeginPaint(hWnd, &ps);
|
||||
BeginPaint(hWnd, &ps);
|
||||
FillRect(ps.hdc, &rt, GetSysColorBrush(COLOR_BTNFACE));
|
||||
EndPaint(hWnd, &ps);
|
||||
}
|
||||
|
|
|
@ -768,16 +768,11 @@ static BOOL
|
|||
HEXEDIT_WM_KEYDOWN(PHEXEDIT_DATA hed, INT VkCode)
|
||||
{
|
||||
size_t bufsize;
|
||||
BOOL shift, control;
|
||||
|
||||
if(GetKeyState(VK_MENU) & 0x8000)
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
shift = GetKeyState(VK_SHIFT) & 0x8000;
|
||||
control = GetKeyState(VK_CONTROL) & 0x8000;
|
||||
|
||||
bufsize = (hed->hBuffer ? LocalSize(hed->hBuffer) : 0);
|
||||
|
||||
switch(VkCode)
|
||||
|
|
|
@ -65,7 +65,6 @@ BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
|
|||
WNDCLASSEX wcFrame;
|
||||
WNDCLASSEX wcChild;
|
||||
ATOM hFrameWndClass;
|
||||
ATOM hChildWndClass;
|
||||
|
||||
ZeroMemory(&wcFrame, sizeof(WNDCLASSEX));
|
||||
wcFrame.cbSize = sizeof(WNDCLASSEX);
|
||||
|
@ -93,7 +92,7 @@ BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
|
|||
wcChild.hIconSm = (HICON)LoadImage(hInstance, MAKEINTRESOURCE(IDI_REGEDIT), IMAGE_ICON,
|
||||
GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), LR_SHARED);
|
||||
|
||||
hChildWndClass = RegisterClassEx(&wcChild); /* register child windows class */
|
||||
RegisterClassEx(&wcChild); /* register child windows class */
|
||||
|
||||
RegisterHexEditorClass(hInstance);
|
||||
|
||||
|
|
|
@ -544,7 +544,6 @@ BOOL CreateNewKey(HWND hwndTV, HTREEITEM hItem)
|
|||
HKEY hKey = NULL;
|
||||
HKEY hNewKey = NULL;
|
||||
BOOL bSuccess = FALSE;
|
||||
LONG lResult;
|
||||
DWORD dwDisposition;
|
||||
HTREEITEM hNewItem;
|
||||
|
||||
|
@ -559,7 +558,7 @@ BOOL CreateNewKey(HWND hwndTV, HTREEITEM hItem)
|
|||
do
|
||||
{
|
||||
_sntprintf(szNewKey, sizeof(szNewKey) / sizeof(szNewKey[0]), szNewKeyFormat, iIndex++);
|
||||
lResult = RegCreateKeyEx(hKey, szNewKey, 0, NULL, 0, KEY_ALL_ACCESS, NULL, &hNewKey, &dwDisposition);
|
||||
RegCreateKeyEx(hKey, szNewKey, 0, NULL, 0, KEY_ALL_ACCESS, NULL, &hNewKey, &dwDisposition);
|
||||
if (hNewKey && (dwDisposition == REG_OPENED_EXISTING_KEY))
|
||||
{
|
||||
RegCloseKey(hNewKey);
|
||||
|
|
Loading…
Reference in a new issue