mirror of
				https://github.com/cmderdev/cmder.git
				synced 2025-10-31 17:32:27 +08:00 
			
		
		
		
	XP compatible launcher
This commit is contained in:
		
				
					committed by
					
						 Samuel Vasko
						Samuel Vasko
					
				
			
			
				
	
			
			
			
						parent
						
							e3e1effef3
						
					
				
				
					commit
					97980f5f34
				
			| @@ -205,8 +205,13 @@ void UnregisterShellMenu(std::wstring opt, wchar_t* keyBaseName) | ||||
| 	FAIL_ON_ERROR( | ||||
| 		RegCreateKeyEx(root, keyBaseName, 0, NULL, | ||||
| 		REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &cmderKey, NULL)); | ||||
| 	FAIL_ON_ERROR(RegDeleteTree(cmderKey, NULL)); | ||||
| 	FAIL_ON_ERROR(RegDeleteKey(root, keyBaseName)); | ||||
| #ifdef XP | ||||
| 	FAIL_ON_ERROR(SHDeleteKey(cmderKey, NULL)); | ||||
| 	FAIL_ON_ERROR(SHDeleteKey(root, SHELL_MENU_REGISTRY_PATH)); | ||||
| #else | ||||
| 	FAIL_ON_ERROR(RegDeleteTree(cmderKey, NULL));); | ||||
| 	FAIL_ON_ERROR(RegDeleteKey(root, SHELL_MENU_REGISTRY_PATH)); | ||||
| #endif | ||||
| 	RegCloseKey(cmderKey); | ||||
| 	RegCloseKey(root); | ||||
| } | ||||
| @@ -243,4 +248,4 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance, | ||||
| 	} | ||||
|  | ||||
| 	return 0; | ||||
| } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user