[LOCALSPL] Sync with Wine Staging 1.7.55. CORE-10536
[reactos.git] / reactos / dll / win32 / localspl / provider.c
index d07a04c..4546a22 100644 (file)
@@ -1838,7 +1838,7 @@ static BOOL WINAPI fpDeleteMonitor(LPWSTR pName, LPWSTR pEnvironment, LPWSTR pMo
         return FALSE;
     }
 
-    if(SHDeleteKeyW(hroot, pMonitorName) == ERROR_SUCCESS) {
+    if(RegDeleteTreeW(hroot, pMonitorName) == ERROR_SUCCESS) {
         TRACE("%s deleted\n", debugstr_w(pMonitorName));
         RegCloseKey(hroot);
         return TRUE;