Simplified a #ifdef __WIN32.

svn path=/trunk/; revision=35448
This commit is contained in:
Stig Bjørlykke 2011-01-10 07:01:23 +00:00
parent d6393bba6e
commit 7bf2077607
1 changed files with 2 additions and 4 deletions

6
util.c
View File

@ -330,14 +330,12 @@ const gchar *get_conn_cfilter(void) {
host_ip_af(phostname), phostname);
g_free(phostname);
return filter_str->str;
#ifndef _WIN32
}
#else /* _WIN32 */
#ifdef _WIN32
} else if (GetSystemMetrics(SM_REMOTESESSION)) {
/* We have a remote session: http://msdn.microsoft.com/en-us/library/aa380798%28VS.85%29.aspx */
g_string_printf(filter_str, "not tcp port 3389");
return filter_str->str;
}
#endif /* _WIN32 */
}
return "";
}