Commit 4f49655a authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

atl: Replace SHDeleteKeyW with RegDeleteTreeW and get rid of the import of shlwapi.

parent e9a4c235
......@@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = atl.dll
IMPORTLIB = libatl.$(IMPLIBEXT)
IMPORTS = ole32 oleaut32 shlwapi user32 gdi32 advapi32 kernel32
IMPORTS = ole32 oleaut32 user32 gdi32 advapi32 kernel32
EXTRALIBS = -luuid
C_SRCS = \
......
......@@ -27,7 +27,6 @@
#include "winreg.h"
#include "objbase.h"
#include "oaidl.h"
#include "shlwapi.h"
#define ATL_INITGUID
#include "atliface.h"
......@@ -243,10 +242,10 @@ static HRESULT do_process_key(LPCOLESTR *pstr, HKEY parent_key, strbuf *buf, BOO
strbuf_write(buf->str, &name, -1);
}else if(key_type == DO_DELETE) {
TRACE("Deleting %s\n", debugstr_w(buf->str));
lres = SHDeleteKeyW(parent_key, buf->str);
lres = RegDeleteTreeW(parent_key, buf->str);
}else {
if(key_type == FORCE_REMOVE)
SHDeleteKeyW(parent_key, buf->str);
RegDeleteTreeW(parent_key, buf->str);
lres = RegCreateKeyW(parent_key, buf->str, &hkey);
if(lres != ERROR_SUCCESS) {
WARN("Could not create(open) key: %08x\n", lres);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment