Added guard in logn callback, normalized line endings in Stdafx.h