removed unused length variable in dlerror() implementation for Windows in example/executable.c
This commit is contained in:
parent
8ddf72164b
commit
cc8a01b8a7
@ -47,9 +47,8 @@ static const char* dlerror(void)
|
|||||||
if (error)
|
if (error)
|
||||||
{
|
{
|
||||||
static char message[1024];
|
static char message[1024];
|
||||||
DWORD length;
|
|
||||||
|
|
||||||
length = FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, error, MAKELANGID(LANG_ENGLISH, SUBLANG_DEFAULT), message, sizeof(message), NULL);
|
FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, error, MAKELANGID(LANG_ENGLISH, SUBLANG_DEFAULT), message, sizeof(message), NULL);
|
||||||
|
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user