[regedit] Amine Khaldi: Remove unused variables

svn path=/trunk/; revision=44557
This commit is contained in:
Gregor Schneider 2009-12-12 22:09:05 +00:00
parent d65cf93246
commit 5ed5d97905
4 changed files with 3 additions and 11 deletions

View file

@ -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);
}

View file

@ -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)

View file

@ -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);

View file

@ -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);