regedit: Disallow editing root key names.
This commit is contained in:
parent
c00702cd6e
commit
003622c015
|
@ -405,6 +405,12 @@ LRESULT CALLBACK ChildWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
|
||||||
TPM_RIGHTBUTTON, pt.x, pt.y, 0, hFrameWnd, NULL);
|
TPM_RIGHTBUTTON, pt.x, pt.y, 0, hFrameWnd, NULL);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case TVN_BEGINLABELEDITW: {
|
||||||
|
HKEY hRootKey;
|
||||||
|
LPWSTR path = GetItemPath(g_pChildWnd->hTreeWnd, 0, &hRootKey);
|
||||||
|
if (!path || !*path) return 1;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
case TVN_ENDLABELEDITW: {
|
case TVN_ENDLABELEDITW: {
|
||||||
HKEY hRootKey;
|
HKEY hRootKey;
|
||||||
LPNMTVDISPINFOW dispInfo = (LPNMTVDISPINFOW)lParam;
|
LPNMTVDISPINFOW dispInfo = (LPNMTVDISPINFOW)lParam;
|
||||||
|
|
Loading…
Reference in New Issue