mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-07-20 22:32:01 +00:00
[host] delete redundant / sizeof(char)
`sizeof(char) == 1` always per standard, so this is redundant.
This commit is contained in:
@@ -102,7 +102,7 @@ void winerr(void)
|
|||||||
char buf[256];
|
char buf[256];
|
||||||
FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
|
FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
|
||||||
NULL, GetLastError(), MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
|
NULL, GetLastError(), MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
|
||||||
buf, (sizeof(buf) / sizeof(char)), NULL);
|
buf, sizeof(buf), NULL);
|
||||||
doLog("0x%08lx - %s", GetLastError(), buf);
|
doLog("0x%08lx - %s", GetLastError(), buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user