mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
atl: Replace SHDeleteKeyW with RegDeleteTreeW and get rid of the import of shlwapi.
This commit is contained in:
parent
e9a4c2351d
commit
4f49655a65
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user