[win32] Fix usage of GetFullPathName()

Diego Santa Cruz pointed out that we are using that API wrongly.
The forth argument is a pointer to a pointer.  Turns out we don't
need that arugment and it accepts NULL, so just pass that.
This commit is contained in:
Behdad Esfahbod 2009-02-03 20:31:30 -05:00
parent c4d557ab90
commit e62058abb9
1 changed files with 1 additions and 3 deletions

View File

@ -968,10 +968,8 @@ FcStrCanonFilename (const FcChar8 *s)
{ {
#ifdef _WIN32 #ifdef _WIN32
FcChar8 full[FC_MAX_FILE_LEN + 2]; FcChar8 full[FC_MAX_FILE_LEN + 2];
FcChar8 basename[FC_MAX_FILE_LEN + 2];
int size = GetFullPathName (s, sizeof (full) -1, int size = GetFullPathName (s, sizeof (full) -1,
full, full, NULL);
basename);
if (size == 0) if (size == 0)
perror ("GetFullPathName"); perror ("GetFullPathName");