From: Gunnar Dalsnes
So, I'd like to store it as second string in
szCSDVersion. Any
objections to that?
What will happend it i run apps that rely on this behaviour
(cmd.exe) on Windows? The stuff past the nullterm on windows
will likely contain garbage. Checking for magic chars past
the windows nullchar ("ros" etc.) might solve this tho.
As an extra line of defense, my idea was that apps which are going to depend
on this behaviour (ReactOS aware apps) set szCSDVersion to all nulls before
calling GetVersion. If the first few nulls after the windows nullchar are
magically changed to "ReactOS" it's a pretty good indication you're
actually
running on ReactOS. Ofcourse, the apps should still have the safeguards you
described (max string length etc.)
Gé van Geldorp.