Francois Gouget (@fgouget) commented about dlls/ieframe/tests/webbrowser.c:
static void test_SetQueryNetSessionCount(void) {
- LONG count, init_count;
LONG count, init_count, inc_count, dec_count;
init_count = pSetQueryNetSessionCount(SESSION_QUERY); trace("init_count %ld\n", init_count);
- count = pSetQueryNetSessionCount(SESSION_INCREMENT);
- ok(count == init_count + 1, "count = %ld\n", count);
inc_count = pSetQueryNetSessionCount(SESSION_INCREMENT);
ok(inc_count > init_count, "count = %ld\n", inc_count);
count = pSetQueryNetSessionCount(SESSION_QUERY);
- ok(count == init_count + 1, "count = %ld\n", count);
- ok(count == inc_count, "count = %ld\n", count);
If IE creates its own net session between the SESSION_INCREMENT call and the SESSION_QUERY one this last ok() call will fail.