Michael Stefaniuc : faultrep: Use wide-char string literals.

Alexandre Julliard julliard at winehq.org
Thu Oct 1 15:50:30 CDT 2020


Module: wine
Branch: master
Commit: d489c58e7ba77532a81357ad9d405099e8a2b4bd
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=d489c58e7ba77532a81357ad9d405099e8a2b4bd

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Wed Sep 30 23:14:55 2020 +0200

faultrep: Use wide-char string literals.

Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/faultrep/faultrep.c | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/dlls/faultrep/faultrep.c b/dlls/faultrep/faultrep.c
index 3191659cd6..6d1aba9de8 100644
--- a/dlls/faultrep/faultrep.c
+++ b/dlls/faultrep/faultrep.c
@@ -29,13 +29,6 @@
 
 WINE_DEFAULT_DEBUG_CHANNEL(faultrep);
 
-static const WCHAR SZ_EXCLUSIONLIST_KEY[] = {
-    'S','o','f','t','w','a','r','e','\\',
-    'M','i','c','r','o','s','o','f','t','\\',
-    'P','C','H','e','a','l','t','h','\\',
-    'E','r','r','o','r','R','e','p','o','r','t','i','n','g','\\',
-    'E','x','c','l','u','s','i','o','n','L','i','s','t', 0};
-
 /*************************************************************************
  * AddERExcludedApplicationW  [FAULTREP.@]
  *
@@ -70,7 +63,8 @@ BOOL WINAPI AddERExcludedApplicationW(LPCWSTR lpAppFileName)
         return FALSE;
     }
 
-    res = RegCreateKeyW(HKEY_LOCAL_MACHINE, SZ_EXCLUSIONLIST_KEY, &hkey);
+    res = RegCreateKeyW(HKEY_LOCAL_MACHINE,
+            L"Software\\Microsoft\\PCHealth\\ErrorReporting\\ExclusionList", &hkey);
     if (!res)
     {
         RegSetValueExW(hkey, lpAppFileName, 0, REG_DWORD, (LPBYTE)&value, sizeof(value));




More information about the wine-cvs mailing list