mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 12:23:30 +00:00
small bugfix: don't zero terminate the szCSDVersion sting beyond the buffer.
svn path=/trunk/; revision=28111
This commit is contained in:
@@ -15,7 +15,7 @@ InitOsVersion()
|
||||
GetVersionExW(&osv);
|
||||
pszRos = osv.szCSDVersion + wcslen(osv.szCSDVersion) + 1;
|
||||
/* make sure the string is zero terminated */
|
||||
pszRos[127] = 0;
|
||||
osv.szCSDVersion[127] = 0;
|
||||
/* Is ReactOS? */
|
||||
if (wcsstr(pszRos, L"ReactOS") != NULL)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user