Skip to content

Commit

Permalink
Fix PathFindFileNameA for Unix.
Browse files Browse the repository at this point in the history
  • Loading branch information
rhcad committed Dec 2, 2011
1 parent 8347672 commit abd4dde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/pkg_Core/Interface/Portability/pathstr.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ char* PathFindFileNameA(const char* path)

p1 = !p1 || (p2 && p2 > p1) ? p2 : p1;

return const_cast<char*>(p1 ? p1 + 1 : p1);
return const_cast<char*>(p1 ? p1 + 1 : path);
}

wchar_t* PathFindFileNameW(const wchar_t* path)
Expand Down

0 comments on commit abd4dde

Please sign in to comment.