forked from aniani/vim
updated for version 7.4.522
Problem: Specifying wrong buffer size for GetLongPathName(). Solution: Use the actual size. (Ken Takata)
This commit is contained in:
@@ -24762,7 +24762,7 @@ repeat:
|
||||
p = alloc(_MAX_PATH + 1);
|
||||
if (p != NULL)
|
||||
{
|
||||
if (GetLongPathName(*fnamep, p, MAXPATHL))
|
||||
if (GetLongPathName(*fnamep, p, _MAX_PATH))
|
||||
{
|
||||
vim_free(*bufp);
|
||||
*bufp = *fnamep = p;
|
||||
|
Reference in New Issue
Block a user