mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2025-02-21 12:51:58 +00:00
fixing path to realPath
Signed-off-by: samhu1989 <hsy19891228@yeah.net>
This commit is contained in:
parent
62905ee7c9
commit
3d7a02c147
@ -44,7 +44,7 @@ bool DrawingSampleReplayer::ReadCmds(const std::string path)
|
||||
std::cout << "PathToRealPath fails on: " << path;
|
||||
return false;
|
||||
}
|
||||
UniqueFd fd(open(path.c_str(), O_RDONLY));
|
||||
UniqueFd fd(open(realPath.c_str(), O_RDONLY));
|
||||
if (fd <= 0) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user