diff options
author | sfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-12-16 20:38:06 +0000 |
---|---|---|
committer | sfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-12-16 20:38:06 +0000 |
commit | 78427046bfa4447251c8df25d76bb74817c9140f (patch) | |
tree | 5811b7e7b0ed401dd45600d034d957e87377f1a3 /util.c | |
parent | bf24d478e9e70a739126e6e2ab1703335398253f (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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 ""; } |