Fixed CreateSemaphore error.

-Frank Dye