mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 02:25:17 +00:00
prevent buffer overflow, LoadString accepts the size of the buffer in TCHARs, not in bytes!
svn path=/trunk/; revision=14981
This commit is contained in:
parent
c1b7289bd6
commit
0e71d1e88d
1 changed files with 2 additions and 2 deletions
|
@ -105,8 +105,8 @@ void StartShell(void)
|
|||
}
|
||||
else
|
||||
{
|
||||
LoadString( GetModuleHandle(NULL), STRING_USERINIT_FAIL, (LPTSTR) szMsg,sizeof(szMsg));
|
||||
MessageBox(0, szMsg, NULL, 0);
|
||||
LoadString( GetModuleHandle(NULL), STRING_USERINIT_FAIL, szMsg, sizeof(szMsg) / sizeof(szMsg[0]));
|
||||
MessageBox(0, szMsg, NULL, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue