Bugfix type error.
Now check the return value of the LoadBMP function.