mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
[LOCALSPL]
* Do not rely on RegDeleteTreeW which shouldn't be exported. * We no longer need to define _WIN32_WINNT as 0x600. CORE-8174 svn path=/trunk/; revision=63554
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
|
||||
remove_definitions(-D_WIN32_WINNT=0x502)
|
||||
add_definitions(-D_WIN32_WINNT=0x600)
|
||||
|
||||
add_definitions(-D__WINESRC__)
|
||||
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
||||
spec2def(localspl.dll localspl.spec)
|
||||
@@ -20,6 +17,6 @@ add_library(localspl SHARED
|
||||
|
||||
set_module_type(localspl win32dll)
|
||||
target_link_libraries(localspl wine)
|
||||
add_importlibs(localspl spoolss user32 advapi32 msvcrt kernel32 ntdll)
|
||||
add_importlibs(localspl spoolss user32 advapi32 shlwapi msvcrt kernel32 ntdll)
|
||||
add_pch(localspl localspl_private.h SOURCE)
|
||||
add_cd_file(TARGET localspl DESTINATION reactos/system32 FOR all)
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
#include "localspl_private.h"
|
||||
|
||||
#include <shlwapi.h>
|
||||
#include <ddk/winddiui.h>
|
||||
|
||||
/* ############################### */
|
||||
@@ -1846,7 +1847,7 @@ static BOOL WINAPI fpDeleteMonitor(LPWSTR pName, LPWSTR pEnvironment, LPWSTR pMo
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if(RegDeleteTreeW(hroot, pMonitorName) == ERROR_SUCCESS) {
|
||||
if(SHDeleteKeyW(hroot, pMonitorName) == ERROR_SUCCESS) {
|
||||
TRACE("%s deleted\n", debugstr_w(pMonitorName));
|
||||
RegCloseKey(hroot);
|
||||
return TRUE;
|
||||
|
||||
Reference in New Issue
Block a user