MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / win32_error_message

Function win32_error_message

extra/innochecksum.cc:124–135  ·  view source on GitHub ↗

/ @param [in] error error no. from the getLastError(). @retval error message corresponding to error no. */

Source from the content-addressed store, hash-verified

122 @retval error message corresponding to error no.
123*/
124static
125char*
126win32_error_message(
127 int error)
128{
129 static char err_msg[1024] = {'\0'};
130 FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM,
131 NULL, error, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
132 (LPTSTR)err_msg, sizeof(err_msg), NULL );
133
134 return (err_msg);
135}
136#endif /* __WIN__ */
137
138/***********************************************//*

Callers 1

open_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected