[userenv] Print the directory name when GetShortPathNameW fails

svn path=/trunk/; revision=44670
This commit is contained in:
Gregor Schneider 2009-12-20 13:47:20 +00:00
parent 114bcb2c56
commit 60f61011e7

View file

@ -85,7 +85,7 @@ SetUserEnvironmentVariable (LPVOID *Environment,
{
if (!GetShortPathNameW(DstValue.Buffer, ShortName, MAX_PATH))
{
DPRINT1("GetShortPathNameW() failed (Error %lu)\n", GetLastError());
DPRINT1("GetShortPathNameW() failed for %S (Error %lu)\n", DstValue.Buffer, GetLastError());
if (Buffer) LocalFree(Buffer);
return FALSE;
}