cosmetics
Reduce variable scope.
remove unneeded variable
Enable C4701 for /W3.
MainFrm.cpp: remove unused variables.
VobSubFile.cpp: break after return doesn't make sense.
Fix using potentially uninitialized local variable.
DX9RenderingEngine.cpp: Fix leaking memory due to an exception.
Remove unneeded typedef.
Remove extra arguments from format strings.

(/analyze warning C6271)
Avoid variable shadowing.
Use unsigned short instead of int in a few places that makes sense to do so.
Be consistent with function's variables.
disable a couple more /analyze warnings for VS2012
Use the right field type specifier in function calls.

(/analyze warning C6340)
Fix possible NULL pointer dereference.