Michael Stefaniuc : netcfgx/tests: Use wide-char string literals.
Alexandre Julliard
julliard at winehq.org
Mon Oct 5 15:54:57 CDT 2020
Module: wine
Branch: master
Commit: bbb00dce7ee0f14a6e6a157c880b0228eddc17cc
URL: https://source.winehq.org/git/wine.git/?a=commit;h=bbb00dce7ee0f14a6e6a157c880b0228eddc17cc
Author: Michael Stefaniuc <mstefani at winehq.org>
Date: Sat Oct 3 20:28:23 2020 +0200
netcfgx/tests: Use wide-char string literals.
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/netcfgx/tests/netcfgx.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/dlls/netcfgx/tests/netcfgx.c b/dlls/netcfgx/tests/netcfgx.c
index fda39f5773..31558f44f4 100644
--- a/dlls/netcfgx/tests/netcfgx.c
+++ b/dlls/netcfgx/tests/netcfgx.c
@@ -25,8 +25,6 @@
static void create_configuration(void)
{
- static const WCHAR tcpipW[] = {'M','S','_','T','C','P','I','P',0};
- static const WCHAR myclient[] = {'M','Y',' ','C','L','I','E','N','T',0};
HRESULT hr;
INetCfg *config = NULL;
INetCfgLock *netlock = NULL;
@@ -40,7 +38,7 @@ static void create_configuration(void)
hr = INetCfg_QueryInterface(config, &IID_INetCfgLock, (LPVOID*)&netlock);
ok(hr == S_OK, "got 0x%08x\n", hr);
- hr = INetCfgLock_AcquireWriteLock(netlock, 5000, myclient, &client);
+ hr = INetCfgLock_AcquireWriteLock(netlock, 5000, L"MY CLIENT", &client);
ok(hr == S_OK ||
hr == E_ACCESSDENIED /* Not run as admin */, "got 0x%08x\n", hr);
if(hr == S_OK)
@@ -55,10 +53,10 @@ static void create_configuration(void)
ok(hr == S_OK, "got 0x%08x\n", hr);
/* AcquireWriteLock needs to be run before Initialize */
- hr = INetCfgLock_AcquireWriteLock(netlock, 5000, myclient, &client);
+ hr = INetCfgLock_AcquireWriteLock(netlock, 5000, L"MY CLIENT", &client);
todo_wine ok(hr == NETCFG_E_ALREADY_INITIALIZED || hr == E_ACCESSDENIED, "got 0x%08x\n", hr);
- hr = INetCfg_FindComponent(config, tcpipW, &component);
+ hr = INetCfg_FindComponent(config, L"MS_TCPIP", &component);
todo_wine ok(hr == S_OK, "got 0x%08x\n", hr);
if(hr == S_OK)
{
More information about the wine-cvs
mailing list