removed unused length variable in dlerror() implementation for Windows in example/executable.c

This commit is contained in:
Gregory Pakosz 2016-01-25 22:23:15 +01:00
parent 8ddf72164b
commit cc8a01b8a7

View File

@ -47,9 +47,8 @@ static const char* dlerror(void)
if (error)
{
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;
}