Skip to content

Commit

Permalink
TOOLS: Fix compilation of pegasus_save_types
Browse files Browse the repository at this point in the history
The last argument of FSPathMakeRef is an optional pointer to a bool
and not a bool (if a non-null pointer is given FSPathMakeRef set the
bool value to true if the path is a directory and false otherwise).
  • Loading branch information
criezy committed Sep 7, 2016
1 parent 0661468 commit 03fc925
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/pegasus/pegasus_save_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ int main(int argc, char **argv) {
FSCatalogInfo catInfo;
FSRef ref;

if (!FSPathMakeRef((const UInt8 *)argv[1], &ref, false)) {
if (!FSPathMakeRef((const UInt8 *)argv[1], &ref, 0)) {
FSGetCatalogInfo(&ref, kFSCatInfoFinderInfo, &catInfo, 0, 0, 0);
FileInfo *info = (FileInfo *)catInfo.finderInfo;
info->fileCreator = creator;
Expand Down

0 comments on commit 03fc925

Please sign in to comment.