Revert remaining changes of r47019.
svn path=/trunk/; revision=47040
- RegDeleteValueA (KeyHandle, ValueName);
+ RegDeleteValueA (KeyHandle, ValueName);
if (!(Flags & FLG_ADDREG_BINVALUETYPE) ||
(Type == REG_DWORD && InfHostGetFieldCount (Context) == 5))
{
if (!(Flags & FLG_ADDREG_BINVALUETYPE) ||
(Type == REG_DWORD && InfHostGetFieldCount (Context) == 5))
{
if (Type == REG_MULTI_SZ)
{
if (Type == REG_MULTI_SZ)
{
- * - Implement RegDeleteKeyW()
+ * - Implement RegDeleteKey()
* - Implement RegEnumValue()
* - Implement RegEnumValue()
- * - Implement RegQueryValueExW()
+ * - Implement RegQueryValueExA()
-RegDeleteKeyW(IN HKEY hKey,
- IN LPCWSTR lpSubKey)
+RegDeleteKeyA(HKEY Key,
+ LPCSTR Name)
- if (lpSubKey != NULL && wcschr(lpSubKey, L'\\') != NULL)
- return(ERROR_INVALID_PARAMETER);
+ if (Name != NULL && strchr(Name, '\\') != NULL)
+ return(ERROR_INVALID_PARAMETER);
- DPRINT1("RegDeleteKeyW: FIXME!\n");
- return(ERROR_SUCCESS);
-}
-
-LONG WINAPI
-RegDeleteKeyA(IN HKEY hKey,
- IN LPCSTR lpSubKey)
-{
- PWSTR lpSubKeyW;
- LONG rc;
-
- if (lpSubKey != NULL && strchr(lpSubKey, '\\') != NULL)
- return(ERROR_INVALID_PARAMETER);
-
- lpSubKeyW = MultiByteToWideChar(lpSubKey);
- if (!lpSubKeyW)
- return ERROR_OUTOFMEMORY;
-
- rc = RegDeleteKeyW(hKey, lpSubKeyW);
- free(lpSubKeyW);
- return rc;