diff options
| author | Eli Zaretskii | 2012-10-09 20:10:16 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2012-10-09 20:10:16 +0200 |
| commit | b15736e6e33a52021a2a91b0b3360cd5a9803405 (patch) | |
| tree | c4489cb551d9ef2ebb10c24d860da217ce766f54 /src | |
| parent | cf5fc6dbeac10220394ab201ba3f4402e1e91faf (diff) | |
| download | emacs-b15736e6e33a52021a2a91b0b3360cd5a9803405.tar.gz emacs-b15736e6e33a52021a2a91b0b3360cd5a9803405.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/w32fns.c | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index ee1057bc64d..d83e3430594 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2012-10-09 Eli Zaretskii <eliz@gnu.org> | 1 | 2012-10-09 Eli Zaretskii <eliz@gnu.org> |
| 2 | 2 | ||
| 3 | * w32fns.c (w32_last_error): Change the return value to DWORD, to | ||
| 4 | match what GetLastError returns. Explain why the function is | ||
| 5 | needed. | ||
| 6 | |||
| 3 | * frame.c (delete_frame): Rename local variable 'tooltip_frame' to | 7 | * frame.c (delete_frame): Rename local variable 'tooltip_frame' to |
| 4 | 'is_tooltip_frame', to avoid confusion with its global namesake. | 8 | 'is_tooltip_frame', to avoid confusion with its global namesake. |
| 5 | 9 | ||
diff --git a/src/w32fns.c b/src/w32fns.c index ff8e5fef439..28a689ddc6c 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -6983,8 +6983,10 @@ w32_strerror (int error_no) | |||
| 6983 | return buf; | 6983 | return buf; |
| 6984 | } | 6984 | } |
| 6985 | 6985 | ||
| 6986 | /* For convenience when debugging. */ | 6986 | /* For convenience when debugging. (You cannot call GetLastError |
| 6987 | int | 6987 | directly from GDB: it will crash, because it uses the __stdcall |
| 6988 | calling convention, not the _cdecl convention assumed by GDB.) */ | ||
| 6989 | DWORD | ||
| 6988 | w32_last_error (void) | 6990 | w32_last_error (void) |
| 6989 | { | 6991 | { |
| 6990 | return GetLastError (); | 6992 | return GetLastError (); |