Fixed the copy length in GetSystemDirectory().