Fix compilation error in gdb-dlfcn.c (on Windows)

gdb/ChangeLog:

        * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
        FormatMessage.
This commit is contained in:
Joel Brobecker 2011-11-23 17:24:03 +00:00
parent 9b80deddf2
commit 1fc7b5d725
2 changed files with 6 additions and 1 deletions

View File

@ -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:

View File

@ -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);