Commit 5fac8fb5 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

ieframe/tests: Allow non-zero initial session counter value.

parent ac0c8e80
......@@ -4419,25 +4419,22 @@ static void test_SetAdvise(void)
static void test_SetQueryNetSessionCount(void)
{
LONG count;
LONG count, init_count;
count = pSetQueryNetSessionCount(SESSION_QUERY);
ok(count == 0, "count = %d\n", count);
init_count = pSetQueryNetSessionCount(SESSION_QUERY);
trace("init_count %d\n", init_count);
count = pSetQueryNetSessionCount(SESSION_INCREMENT);
ok(count == 1, "count = %d\n", count);
ok(count == init_count + 1, "count = %d\n", count);
count = pSetQueryNetSessionCount(SESSION_QUERY);
ok(count == 1, "count = %d\n", count);
count = pSetQueryNetSessionCount(0xdeadbeef);
ok(count == 0, "count = %d\n", count);
ok(count == init_count + 1, "count = %d\n", count);
count = pSetQueryNetSessionCount(SESSION_DECREMENT);
ok(count == 0, "count = %d\n", count);
ok(count == init_count, "count = %d\n", count);
count = pSetQueryNetSessionCount(SESSION_QUERY);
ok(count == 0, "count = %d\n", count);
ok(count == init_count, "count = %d\n", count);
}
static HRESULT WINAPI outer_QueryInterface(IUnknown *iface, REFIID riid, void **ppv)
......
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