[Bug 20836] Opening non-exe/dll files causes a segfault