Fix for 64-bit

[BOOL] [1] is a 32-bit signed integer.

[1]: http://msdn.microsoft.com/en-us/library/windows/desktop/aa383751(v=vs.85).aspx#BOOL