[ros-dev] Version info
Gunnar Dalsnes
hardon at online.no
Thu Dec 16 19:30:38 CET 2004
> 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.
You must also be sure to not read more that 128 chars, since its
possible that the string past the windows string does not contain any
nullchars (on Windows), and we might read out of bounds. The magic chars
will solve this problem also tho.
Functions/macros that check for the magic chars etc. and return a char*
if valid/null ptr. if not would be nice;-)
Regards
Gunnar
>
> Gé van Geldorp.
>
>
> _______________________________________________
> Ros-dev mailing list
> Ros-dev at reactos.com
> http://reactos.com:8080/mailman/listinfo/ros-dev
>
>
>
>
More information about the Ros-dev
mailing list