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.
Use unsigned short instead of int in a few places that makes sense to do so.
Remove unneeded typedef.
Be consistent with function's variables.
disable a couple more /analyze warnings for VS2012
Remove extra arguments from format strings.

(/analyze warning C6271)
Use the right field type specifier in function calls.

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