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

Alexandre Julliard julliard at winehq.org
Fri Oct 2 14:54:08 CDT 2020


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

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Thu Oct  1 23:26:25 2020 +0200

fntcache: Use wide-char string literals.

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

---

 dlls/fntcache/main.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dlls/fntcache/main.c b/dlls/fntcache/main.c
index 8de84b262e..f579c4ebf3 100644
--- a/dlls/fntcache/main.c
+++ b/dlls/fntcache/main.c
@@ -83,14 +83,13 @@ static DWORD WINAPI service_handler( DWORD ctrl, DWORD event_type, void *event_d
  */
 VOID WINAPI ServiceMain(DWORD argc, LPWSTR *argv)
 {
-    static const WCHAR fontcacheW[] = {'F','o','n','t','C','a','c','h','e',0};
     SERVICE_STATUS status;
 
     TRACE( "starting service\n" );
 
     stop_event = CreateEventW( NULL, TRUE, FALSE, NULL );
 
-    service_handle = RegisterServiceCtrlHandlerExW( fontcacheW, service_handler, NULL );
+    service_handle = RegisterServiceCtrlHandlerExW( L"FontCache", service_handler, NULL );
     if (!service_handle)
         return;
 




More information about the wine-cvs mailing list