mirror of
https://gitee.com/openharmony/ability_idl_tool
synced 2024-11-23 07:20:29 +00:00
sdk idl工具读取文件失败的问题修复
Signed-off-by: zhangjidong <873721519@qq.com>
This commit is contained in:
parent
274b1f7596
commit
3c36e83379
2
main.cpp
2
main.cpp
@ -93,7 +93,7 @@ static int DoCompile(Options& options, std::shared_ptr<MetaComponent>& metadata)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int DoGenerage(Options& options, std::shared_ptr<MetaComponent>& metadata)
|
||||
static int DoGenerage(const Options& options, std::shared_ptr<MetaComponent>& metadata)
|
||||
{
|
||||
if (options.DoGenerateCode()) {
|
||||
if (metadata == nullptr) {
|
||||
|
@ -41,11 +41,15 @@ File::File(const String& path, int mode)
|
||||
if (absolutePath != nullptr) {
|
||||
pathTmp = absolutePath;
|
||||
free(absolutePath);
|
||||
} else {
|
||||
pathTmp = path;
|
||||
}
|
||||
#else
|
||||
char absolutePath[_MAX_PATH];
|
||||
if (_fullpath(absolutePath, path.string(), _MAX_PATH) == nullptr) {
|
||||
pathTmp = absolutePath;
|
||||
} else {
|
||||
pathTmp = path;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user