cmd: Fix character count passed to GetShortPathName in WCMD_HandleTildaModifiers.

This commit is contained in:
Rob Shearman 2008-02-25 09:00:14 +00:00 committed by Alexandre Julliard
parent 271eaf5c9d
commit 1d6922b2e0

View file

@ -506,7 +506,8 @@ void WCMD_HandleTildaModifiers(WCHAR **start, WCHAR *forVariable, WCHAR *forValu
if (memchrW(firstModifier, 's', modifierLen) != NULL) {
if (finaloutput[0] != 0x00) strcatW(finaloutput, space);
/* Don't flag as doneModifier - %~s on its own is processed later */
GetShortPathName(outputparam, outputparam, sizeof(outputparam));
GetShortPathName(outputparam, outputparam,
sizeof(outputparam)/sizeof(outputparam[0]));
}
/* 5. Handle 'f' : Fully qualified path (File doesn't have to exist) */