Check return value when it make sense.

Fixes CID #965890, #965892, #965893, #965894, #965898, #1084351
Remove dead conditionals

Fixes CID #965943 #965949
Fix integer overflow

Fixes CID #966079, #966078
Remove unused variables.

Fixes CID #966363, #966530
Fix uninitialized scalar field

 CID #966282, #966283, #966284, #966285, #966286, #966287, #966311,
 #966316, #366317, #366318, #966343, #966345, #966347, #966350, #966349,
 #966359, #366360, #966362, #966363, #966364, #966365, #966366, #966370,
 #966373, #966374, #966375, #966376, #966377, #1027114, #1026047
Fix Uninitialized pointer field

CID #966281, #966310, #966313, #966314, #966328, #966329, #966346,
 #966354, #966358, #966361, #966371, #966378, #1041190
Cosmetics in CSyncAP, CBaseAP and CEVRAllocatorPresenter constructor for coverity
fixes and better readability.

Fixes CID #966315, #966319, #966320
Change RasterizerNfo to struct.

Initialize variables in constructor.

Fixes CID #966372
Remove default empty string from GetProfileString()
Cosmetic for GetProfileInt(), change int to BOOL when it makes sense.
Remove some unneeded defines reported by cppcheck
Cosmetic for error check.
Reduce variable scope when possible

Remove unused variables

Spoted by cppcheck