From Michael Speck via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4726 :
authormorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 29 Apr 2010 13:12:54 +0000 (13:12 +0000)
committermorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 29 Apr 2010 13:12:54 +0000 (13:12 +0000)
If "Help -> About Wireshark" is selected from Wireshark's main menu an error
message pops up:

Could not open file "<DevelopmentPath>\Wireshark_Source\wireshark-gtk2\COPYING":
No such file or directory

The attached patch handles this situation by looking for COPYING.txt instead of
COPYING on windows systems.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32596 f5534014-38df-0310-8fa8-9805f1628bb7

gtk/about_dlg.c

index 69d31b5bf1e8a94ec82ec7e12be5eaba779dcee3..a4dbc664796727bed3440a8fcb5bc3c84e9d6a35 100644 (file)
@@ -475,7 +475,11 @@ about_license_page_new(void)
   GtkWidget   *page;
   char *absolute_path;
 
+#if defined(_WIN32)
+  absolute_path = get_datafile_path("COPYING.txt");
+#else
   absolute_path = get_datafile_path("COPYING");
+#endif
   page = text_page_new(absolute_path);
 
   return page;