GNU bug report logs -
#6126
24.0.50; Segmentation fault when w32-shell-execute try to open an unassociated file
Previous Next
Reported by: Chunyu Wang <cymacs <at> gmail.com>
Date: Thu, 6 May 2010 16:20:03 UTC
Severity: normal
Found in version 24.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #11 received at 6126 <at> debbugs.gnu.org (full text, mbox):
2010/5/7 Lennart Borgman <lennart.borgman <at> gmail.com>:
> ...
> I do not understand C code but here are some small observations:
>
> - In w32_error the argument error_no has type int. It should be more
> easy to understand if it had the type DWORD which is what GetLastError
> returns. Will using int be correct on all w32 platforms?
Sorry, I have no idea completely.
> - The call to error in w32-shell-execute has only two arguments. Is
> that correct? error in eval.c takes four arguments.
(w32-shell-execute OPERATION DOCUMENT &optional PARAMETERS SHOW-FLAG)
The last two are optional, but emacs crashed even if called with them.
> - The parameter lpBuffer to FormatMessage has the type LPTSTR. Is it
> correct to call that with *char (ie buf)? It looks in the backtrace
> like even the argument a1 to error is incorrect.
no idea too.
--
Harbin Institute of Technology, China
Chunyu Wang
This bug report was last modified 15 years and 23 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.