projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e4807d
)
small bugfix: don't zero terminate the szCSDVersion sting beyond the buffer.
author
Timo Kreuzer
<timo.kreuzer@reactos.org>
Thu, 2 Aug 2007 22:23:27 +0000
(22:23 +0000)
committer
Timo Kreuzer
<timo.kreuzer@reactos.org>
Thu, 2 Aug 2007 22:23:27 +0000
(22:23 +0000)
svn path=/trunk/; revision=28111
rostests/apitests/w32knapi/w32knapi.c
patch
|
blob
|
history
diff --git
a/rostests/apitests/w32knapi/w32knapi.c
b/rostests/apitests/w32knapi/w32knapi.c
index
35f512f
..
78dacdc
100644
(file)
--- a/
rostests/apitests/w32knapi/w32knapi.c
+++ b/
rostests/apitests/w32knapi/w32knapi.c
@@
-15,7
+15,7
@@
InitOsVersion()
GetVersionExW(&osv);
\r
pszRos = osv.szCSDVersion + wcslen(osv.szCSDVersion) + 1;
\r
/* make sure the string is zero terminated */
\r
-
pszRos
[127] = 0;
\r
+
osv.szCSDVersion
[127] = 0;
\r
/* Is ReactOS? */
\r
if (wcsstr(pszRos, L"ReactOS") != NULL)
\r
{
\r