Talk:Windows Programming/Message Loop Architecture

The message loop can't run this way: while( (bRet = GetMessage( &msg, NULL, 0, 0 )) != 0). The condition must be while > 0. Because if you get an error, the GetMessage function will return negative number and if you treat it like an ordinary message, you will get into more errors, which might be fatal. I haven't fixed anything because I don't want to break author's idea, but I think that's a mistake.