This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit/Windows] Fix compilation error in gdb-dlfcn.c


Silly mistake in the call to FormatMessage (missing comma between
two arguments). Fixed thusly.

I was wondering if I should join the last two lines as well, but
maybe there was some thought behind the current line split, so
I didn't touch it for this patch.

gdb/ChangeLog:

        * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
        FormatMessage.

Checked in.

---
 gdb/ChangeLog   |    5 +++++
 gdb/gdb-dlfcn.c |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b168d83..e16f120 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2011-11-23  Joel Brobecker  <brobecker@adacore.com>
+
+	* gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
+	FormatMessage.
+
 2011-11-22  Tom Tromey  <tromey@redhat.com>
 
 	PR mi/8444:
diff --git a/gdb/gdb-dlfcn.c b/gdb/gdb-dlfcn.c
index 1caa9af..c69528f 100644
--- a/gdb/gdb-dlfcn.c
+++ b/gdb/gdb-dlfcn.c
@@ -90,7 +90,7 @@ gdb_dlopen (const char *filename)
     FormatMessage (FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM |
                    FORMAT_MESSAGE_IGNORE_INSERTS,
                    NULL, dw, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
-                   (LPTSTR) &buffer
+                   (LPTSTR) &buffer,
                    0, NULL);
 
     error (_("Could not load %s: %s"), filename, (char *) buffer);
-- 
1.7.1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]