From ec4f82ef3ef9b369647820a0d52e6234da9cd7b4 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 18 Jun 2018 18:02:21 -0700 Subject: [PATCH] Define proper wchar string literals --- dsound8.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/dsound8.c b/dsound8.c index 6604113..58d70eb 100644 --- a/dsound8.c +++ b/dsound8.c @@ -406,18 +406,10 @@ HRESULT DSOUND_Create(REFIID riid, void **ds) return hr; } -static const WCHAR speakerconfigkey[] = { - 'S','Y','S','T','E','M','\\', - 'C','u','r','r','e','n','t','C','o','n','t','r','o','l','S','e','t','\\', - 'C','o','n','t','r','o','l','\\', - 'M','e','d','i','a','R','e','s','o','u','r','c','e','s','\\', - 'D','i','r','e','c','t','S','o','u','n','d','\\', - 'S','p','e','a','k','e','r',' ','C','o','n','f','i','g','u','r','a','t','i','o','n',0 -}; -static const WCHAR speakerconfig[] = { - 'S','p','e','a','k','e','r',' ','C','o','n','f','i','g','u','r','a','t','i','o','n',0 -}; +static const WCHAR speakerconfigkey[] = + L"SYSTEM\\CurrentControlSet\\Control\\MediaResources\\DirectSound\\Speaker Configuration"; +static const WCHAR speakerconfig[] = L"Speaker Configuration"; HRESULT DSOUND_Create8(REFIID riid, LPVOID *ds) { -- 2.11.4.GIT