Minor changes to make files compile (return values); added resource.cpp.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -535,8 +535,8 @@ const char *wxSysErrorMsg(unsigned long nErrCode)
|
||||
0, NULL);
|
||||
|
||||
// copy it to our buffer and free memory
|
||||
strncpy(s_szBuf, (const char *)lpMsgBuf, SIZEOF(s_szBuf) - 1);
|
||||
s_szBuf[SIZEOF(s_szBuf) - 1] = '\0';
|
||||
strncpy(s_szBuf, (const char *)lpMsgBuf, WXSIZEOF(s_szBuf) - 1);
|
||||
s_szBuf[WXSIZEOF(s_szBuf) - 1] = '\0';
|
||||
LocalFree(lpMsgBuf);
|
||||
|
||||
// returned string is capitalized and ended with '\r\n' - bad
|
||||
|
Reference in New Issue
Block a user