Fix return type of w32_last_error.
src/w32fns.c (w32_last_error): Change the return value to DWORD, to match what GetLastError returns. Explain better why the function is needed.
This commit is contained in:
parent
cf5fc6dbea
commit
b15736e6e3
2 changed files with 8 additions and 2 deletions
|
@ -1,5 +1,9 @@
|
|||
2012-10-09 Eli Zaretskii <eliz@gnu.org>
|
||||
|
||||
* w32fns.c (w32_last_error): Change the return value to DWORD, to
|
||||
match what GetLastError returns. Explain why the function is
|
||||
needed.
|
||||
|
||||
* frame.c (delete_frame): Rename local variable 'tooltip_frame' to
|
||||
'is_tooltip_frame', to avoid confusion with its global namesake.
|
||||
|
||||
|
|
|
@ -6983,8 +6983,10 @@ w32_strerror (int error_no)
|
|||
return buf;
|
||||
}
|
||||
|
||||
/* For convenience when debugging. */
|
||||
int
|
||||
/* For convenience when debugging. (You cannot call GetLastError
|
||||
directly from GDB: it will crash, because it uses the __stdcall
|
||||
calling convention, not the _cdecl convention assumed by GDB.) */
|
||||
DWORD
|
||||
w32_last_error (void)
|
||||
{
|
||||
return GetLastError ();
|
||||
|
|
Loading…
Add table
Reference in a new issue