Apply AStyle.
Remove duplicated code.

Fixes CID #965941.
Fix an incorrect cast.

The return value was casted instead of dwFrames.

Fixes CID #965944.
Avoid useless conversion to CStringA.

Fixes CID #1111768.
CVobFile: Avoid hiding methods without overriding them.

Fixes CID #965828 #965829.
Check some return values when it makes sense to do so.

Fixes CID #1111761 #1111762.
Simplify string handling to avoid possible null dereference.

Fixes CID #1111767.
CDDAReader: Use _byteswap_ushort when possible.

Fixes CID #966012 #966205.
Document some switch cases that intentionally don't end with a break statement.

Fixes CID #966019 #966020.
Avoid a potential (though unlikely) memory leak.

Fixes CID #1111770.
Check that CAutoVectorPtr::Allocate succeeded before using the memory.

Fixes CID #965879 #1111760.
Always check IMediaSample::GetPointer return value.

Fixes CID #965883 #965884.
Improve the Get(Cur)DispMode and SetDispMode functions.

Fixes CID #966222.
Options dialog: Disable "Reset" when the INI is read-only.

Ref #3591.