NumBytes is an unsigned so this will never fire. I assume this might be what you wanted to do originally.
Gah, made a C++ 101 mistake. :|
Thanks for fixing!