boogs
i found three bugs in one of our products today that have been there for many years with no one ever noticing. neat huh? how could that possibly happen? glad you asked. i'll tell you. the first bug is someone used %s in a printf instead of %ls. a wchar* is a lot like char* except there's a zero after every char. which terminates the char* after the first char. heh. so instead of printing 'timmerov' it printed 't'. big bad boog there, eh? heh. the second boog isn't that the !message shouldn't have not been !printed in the !first !place. heh. yeah. if statements should be as clear as possible. sometimes it takes a while for my old brain to grind through tortured inverse logic. you really don't want to use ! on a function that returns an error code. bad idea. so anywho, the third bug was that the log message was being logged before the log message logging system was set up. so the log message wasn't actually being logged. just like it shouldn't have been. so everything's good right?