Added an explicit cast of (LPCTSRT) on line 4626, which seemed necessary when compiling with UNICODE defined.