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
Fix uninitialized class members

Fixes CID #366317, #366318, #366360, #966281, #966282, #966283, #966284,
 #966285, #966286, #966287, #966310, #966311, #966313, #966314, #966316,
 #966328, #966329, #966343, #966345, #966346, #966347, #966349, #966350,
 #966354, #966358, #966359, #966361, #966362, #966363, #966364, #966365,
 #966366, #966370, #966371, #966373, #966374, #966375, #966376, #966377,
 #966378, #1026047, #1027114, #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 unused variables

Fixes CID #966363, #966530
Cosmetic for error check.
Reduce variable scope when possible

Remove unused variables

Spotted by cppcheck