The included patch allows "open with" to work. (It has only been
verified under windows 2000 professional, but the "standard" of passing
in just the file name to open most likely occurs on all windows
platforms). The line numbers given in the diff file probably won't
match the source tree, but the diff was done with "-u" in order to give
context.
*** old_main.c Fri Nov 23 12:59:19 2001
--- updated_main.c Fri Nov 23 12:46:07 2001
***************
*** 896,901 ****
--- 896,904 ----
e_prefs *prefs;
char badopt;
char *bold_font_name;
+ #ifdef WIN32
+ char found_arg = 0;
+ #endif //win32
ethereal_path = argv[0];
#ifdef WIN32
***************
*** 1069,1074 ****
--- 1072,1078 ----
/* Now get our args */
while ((opt = getopt(argc, argv, "B:c:f:hi:klm:nN:o:pP:Qr:R:Ss:t:T:w:W:vZ:")) != EOF) {
+ found_arg = 1;
switch (opt) {
case 'B': /* Byte view pane height */
bv_size = get_positive_int(optarg, "byte view pane height");
***************
*** 1261,1266 ****
--- 1265,1273 ----
}
#ifdef WIN32
+ if (argc == 2 && found_arg==0){
+ cf_name = g_strdup(argv[1]);
+ }
/* Load wpcap if possible */
load_wpcap();
begin:vcard
n:House;Jason
tel;pager:N/A
tel;cell:N/A
tel;fax:(732) 389-6761
tel;home:(available if needed)
tel;work:(732) 389-6737
x-mozilla-html:FALSE
url:http://www.mitre.org
org:Mitre;W302
adr:;;12 Christopher Way;Eatontown;NJ;07724;USA
version:2.1
email;internet:jhouse@xxxxxxxxx
title:Networking Systems & Distributed Systems Engineer
fn:Jason House
end:vcard