Skip to content

Commit

Permalink
src:fix windows build
Browse files Browse the repository at this point in the history
Signed-off-by: xiaoming <[email protected]>
  • Loading branch information
QQxiaoming committed Aug 7, 2023
1 parent fec2567 commit 7ff89a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fsviewmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ int Jffs2FSViewModel::fs_read_file(QString output, QFile &input) {
QString output_path = output_info.absolutePath();
QString output_name = output_info.fileName();
#if defined(Q_OS_WIN)
input_path.replace("C:/","");
output_path.replace("C:/","");
#endif

struct jffs2_raw_dirent *dd;
Expand All @@ -364,7 +364,7 @@ int Jffs2FSViewModel::fs_create_dir(QString path) {
QString output_path = output_info.absolutePath();
QString output_name = output_info.fileName();
#if defined(Q_OS_WIN)
input_path.replace("C:/","");
output_path.replace("C:/","");
#endif

struct jffs2_raw_dirent *dd;
Expand Down

0 comments on commit 7ff89a7

Please sign in to comment.