aboutsummaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorsfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>2010-12-16 20:38:06 +0000
committersfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>2010-12-16 20:38:06 +0000
commit78427046bfa4447251c8df25d76bb74817c9140f (patch)
tree5811b7e7b0ed401dd45600d034d957e87377f1a3 /util.c
parentbf24d478e9e70a739126e6e2ab1703335398253f (diff)
Only call GetSystemMetrics(SM_REMOTESESSION) if running on MS Windows.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35207 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'util.c')
-rw-r--r--util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/util.c b/util.c
index 444cf96141..e66b095840 100644
--- a/util.c
+++ b/util.c
@@ -330,10 +330,14 @@ const gchar *get_conn_cfilter(void) {
host_ip_af(phostname), phostname);
g_free(phostname);
return filter_str->str;
+#ifndef _WIN32
+ }
+#else /* _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 "";
}