Commit 2dd647a5 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

netcfgx/tests: Enable compilation with long types.

parent 017115a5
EXTRADEFS = -DWINE_NO_LONG_TYPES
TESTDLL = netcfgx.dll
IMPORTS = uuid ole32
......
......@@ -36,11 +36,11 @@ static void create_configuration(void)
if(SUCCEEDED(hr))
{
hr = INetCfg_QueryInterface(config, &IID_INetCfgLock, (LPVOID*)&netlock);
ok(hr == S_OK, "got 0x%08x\n", hr);
ok(hr == S_OK, "got 0x%08lx\n", hr);
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);
hr == E_ACCESSDENIED /* Not run as admin */, "got 0x%08lx\n", hr);
if(hr == S_OK)
{
trace("Lock value: %s\n", wine_dbgstr_w(client));
......@@ -50,27 +50,27 @@ static void create_configuration(void)
trace("Not run with Admin permissions\n");
hr = INetCfg_Initialize(config, NULL);
ok(hr == S_OK, "got 0x%08x\n", hr);
ok(hr == S_OK, "got 0x%08lx\n", hr);
/* AcquireWriteLock needs to be run before Initialize */
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);
todo_wine ok(hr == NETCFG_E_ALREADY_INITIALIZED || hr == E_ACCESSDENIED, "got 0x%08lx\n", hr);
hr = INetCfg_FindComponent(config, L"MS_TCPIP", &component);
todo_wine ok(hr == S_OK, "got 0x%08x\n", hr);
todo_wine ok(hr == S_OK, "got 0x%08lx\n", hr);
if(hr == S_OK)
{
INetCfgComponent_Release(component);
}
hr = INetCfg_Apply(config);
todo_wine ok(hr == S_OK || hr == NETCFG_E_NO_WRITE_LOCK, "got 0x%08x\n", hr);
todo_wine ok(hr == S_OK || hr == NETCFG_E_NO_WRITE_LOCK, "got 0x%08lx\n", hr);
hr = INetCfg_Uninitialize(config);
ok(hr == S_OK, "got 0x%08x\n", hr);
ok(hr == S_OK, "got 0x%08lx\n", hr);
hr = INetCfgLock_ReleaseWriteLock(netlock);
ok(hr == S_OK, "got 0x%08x\n", hr);
ok(hr == S_OK, "got 0x%08lx\n", hr);
INetCfgLock_Release(netlock);
INetCfg_Release(config);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment