+1999-12-16 Tor Lillqvist <tml@iki.fi>
+
+ * gmodule/gmodule-win32.c: Use FormatMessage to translate system
+ error codes into textual messages.
+
1999-11-25 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* glib.h (G_TRYLOCK): This of course should return TRUE in a
+1999-12-16 Tor Lillqvist <tml@iki.fi>
+
+ * gmodule/gmodule-win32.c: Use FormatMessage to translate system
+ error codes into textual messages.
+
1999-11-25 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* glib.h (G_TRYLOCK): This of course should return TRUE in a
+1999-12-16 Tor Lillqvist <tml@iki.fi>
+
+ * gmodule/gmodule-win32.c: Use FormatMessage to translate system
+ error codes into textual messages.
+
1999-11-25 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* glib.h (G_TRYLOCK): This of course should return TRUE in a
+1999-12-16 Tor Lillqvist <tml@iki.fi>
+
+ * gmodule/gmodule-win32.c: Use FormatMessage to translate system
+ error codes into textual messages.
+
1999-11-25 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* glib.h (G_TRYLOCK): This of course should return TRUE in a
+1999-12-16 Tor Lillqvist <tml@iki.fi>
+
+ * gmodule/gmodule-win32.c: Use FormatMessage to translate system
+ error codes into textual messages.
+
1999-11-25 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* glib.h (G_TRYLOCK): This of course should return TRUE in a
+1999-12-16 Tor Lillqvist <tml@iki.fi>
+
+ * gmodule/gmodule-win32.c: Use FormatMessage to translate system
+ error codes into textual messages.
+
1999-11-25 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* glib.h (G_TRYLOCK): This of course should return TRUE in a
+1999-12-16 Tor Lillqvist <tml@iki.fi>
+
+ * gmodule/gmodule-win32.c: Use FormatMessage to translate system
+ error codes into textual messages.
+
1999-11-25 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* glib.h (G_TRYLOCK): This of course should return TRUE in a
+1999-12-16 Tor Lillqvist <tml@iki.fi>
+
+ * gmodule/gmodule-win32.c: Use FormatMessage to translate system
+ error codes into textual messages.
+
1999-11-25 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* glib.h (G_TRYLOCK): This of course should return TRUE in a
if (!handle)
{
char error[100];
- sprintf (error, "Error code %d", GetLastError ());
+ FormatMessage (FORMAT_MESSAGE_FROM_SYSTEM, NULL, GetLastError (),
+ 0, error, sizeof (error), NULL);
g_module_set_error (error);
}
if (!handle)
{
char error[100];
- sprintf (error, "Error code %d", GetLastError ());
+ FormatMessage (FORMAT_MESSAGE_FROM_SYSTEM, NULL, GetLastError (),
+ 0, error, sizeof (error), NULL);
g_module_set_error (error);
}
if (!FreeLibrary (handle))
{
char error[100];
- sprintf (error, "Error code %d", GetLastError ());
+ FormatMessage (FORMAT_MESSAGE_FROM_SYSTEM, NULL, GetLastError (),
+ 0, error, sizeof (error), NULL);
g_module_set_error (error);
}
}
if (!p)
{
char error[100];
- sprintf (error, "Error code %d", GetLastError ());
+ FormatMessage (FORMAT_MESSAGE_FROM_SYSTEM, NULL, GetLastError (),
+ 0, error, sizeof (error), NULL);
g_module_set_error (error);
}
return p;