as requested by @jimis removed the -1 from ShortcutsExpand(filename, sizeof(filename) - 1,