Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
mirrors
rufus
Rufus
提交
9ba3b885
R
Rufus
项目概览
mirrors
/
rufus
/
Rufus
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
Rufus
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
9ba3b885
编写于
1月 16, 2012
作者:
P
Pete Batard
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[iso] iso standalone test improvements
* memleaks check * cleanup
上级
668e2d54
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
20 addition
and
17 deletion
+20
-17
src/iso.c
src/iso.c
+14
-11
src/rufus.rc
src/rufus.rc
+6
-6
未找到文件。
src/iso.c
浏览文件 @
9ba3b885
...
...
@@ -62,35 +62,31 @@ static void print_file_info(const udf_dirent_t *p_udf_dirent, const char* psz_di
const
char
*
psz_fname
=
psz_dirname
?
psz_dirname
:
udf_get_filename
(
p_udf_dirent
);
/* Print directory attributes*/
uprintf
(
"%s %4d %lu %s %s
\n
"
,
udf_mode_string
(
udf_get_posix_filemode
(
p_udf_dirent
),
psz_mode
),
uprintf
(
"%s %4d %lu %s %s"
,
udf_mode_string
(
udf_get_posix_filemode
(
p_udf_dirent
),
psz_mode
),
udf_get_link_count
(
p_udf_dirent
),
(
long
unsigned
int
)
udf_get_file_length
(
p_udf_dirent
),
(
*
psz_fname
?
psz_fname
:
"/"
),
ctime
(
&
mod_time
));
}
static
udf_dirent_t
*
list_files
(
udf_t
*
p_udf
,
udf_dirent_t
*
p_udf_dirent
,
const
char
*
psz_path
)
static
void
list_files
(
udf_t
*
p_udf
,
udf_dirent_t
*
p_udf_dirent
,
const
char
*
psz_path
)
{
if
(
!
p_udf_dirent
)
return
NULL
;
return
;
print_file_info
(
p_udf_dirent
,
psz_path
);
while
(
udf_readdir
(
p_udf_dirent
))
{
if
(
udf_is_dir
(
p_udf_dirent
))
{
udf_dirent_t
*
p_udf_dirent2
=
udf_opendir
(
p_udf_dirent
);
if
(
p_udf_dirent2
)
{
const
char
*
psz_dirname
=
udf_get_filename
(
p_udf_dirent
);
const
unsigned
int
i_newlen
=
2
+
strlen
(
psz_path
)
+
strlen
(
psz_dirname
);
const
unsigned
int
i_newlen
=
2
+
strlen
(
psz_path
)
+
strlen
(
psz_dirname
);
char
*
psz_newpath
=
(
char
*
)
calloc
(
sizeof
(
char
),
i_newlen
);
_snprintf
(
psz_newpath
,
i_newlen
,
"%s%s/"
,
psz_path
,
psz_dirname
);
uprintf
(
"psz_newpath = %s
\n
"
,
psz_newpath
);
list_files
(
p_udf
,
p_udf_dirent2
,
psz_newpath
);
free
(
psz_newpath
);
}
else
{
uprintf
(
"Could not open UDF directory!
\n
"
);
}
}
else
{
print_file_info
(
p_udf_dirent
,
NULL
);
}
}
return
p_udf_dirent
;
}
BOOL
ExtractISO
(
const
char
*
src_iso
,
const
char
*
dest_dir
)
...
...
@@ -128,7 +124,6 @@ BOOL ExtractISO(const char* src_iso, const char* dest_dir)
}
uprintf
(
"partition number: %d
\n
"
,
udf_get_part_number
(
p_udf
));
list_files
(
p_udf
,
p_udf_root
,
""
);
udf_dirent_free
(
p_udf_root
);
r
=
TRUE
;
goto
out
;
...
...
@@ -225,7 +220,15 @@ out:
#ifdef ISO_TEST
int
main
(
int
argc
,
char
**
argv
)
{
ExtractISO
(
"D:
\\
src
\\
libcdio
\\
test
\\
udf102.iso"
,
NULL
);
return
0
;
// ExtractISO("D:\\src\\libcdio\\test\\udf102.iso", NULL);
ExtractISO
(
"D:
\\
Incoming
\\
en_windows_7_ultimate_with_sp1_x64_dvd_618240.iso"
,
NULL
);
while
(
getchar
()
!=
0x0a
);
#ifdef _CRTDBG_MAP_ALLOC
_CrtDumpMemoryLeaks
();
#endif
exit
(
0
);
}
#endif
src/rufus.rc
浏览文件 @
9ba3b885
...
...
@@ -33,7 +33,7 @@ LANGUAGE LANG_ENGLISH, SUBLANG_NEUTRAL
IDD_DIALOG DIALOGEX 12, 12, 206, 278
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_APPWINDOW
CAPTION "Rufus v1.0.7.12
8
"
CAPTION "Rufus v1.0.7.12
9
"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
DEFPUSHBUTTON "Start",IDC_START,94,236,50,14
...
...
@@ -70,7 +70,7 @@ BEGIN
DEFPUSHBUTTON "OK",IDOK,231,175,50,14,WS_GROUP
CONTROL "<a href=""http://rufus.akeo.ie"">http://rufus.akeo.ie</a>",IDC_ABOUT_RUFUS_URL,
"SysLink",WS_TABSTOP,46,47,114,9
LTEXT "Version 1.0.7 (Build 12
8
)",IDC_STATIC,46,19,78,8
LTEXT "Version 1.0.7 (Build 12
9
)",IDC_STATIC,46,19,78,8
PUSHBUTTON "License...",IDC_ABOUT_LICENSE,46,175,50,14,WS_GROUP
EDITTEXT IDC_ABOUT_COPYRIGHTS,46,107,235,63,ES_MULTILINE | ES_READONLY | WS_VSCROLL
LTEXT "Report bugs or request enhancements at:",IDC_STATIC,46,66,187,8
...
...
@@ -208,8 +208,8 @@ END
//
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,7,12
8
PRODUCTVERSION 1,0,7,12
8
FILEVERSION 1,0,7,12
9
PRODUCTVERSION 1,0,7,12
9
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
...
...
@@ -226,13 +226,13 @@ BEGIN
BEGIN
VALUE "CompanyName", "akeo.ie"
VALUE "FileDescription", "Rufus"
VALUE "FileVersion", "1.0.7.12
8
"
VALUE "FileVersion", "1.0.7.12
9
"
VALUE "InternalName", "Rufus"
VALUE "LegalCopyright", "© 2011 Pete Batard (GPL v3)"
VALUE "LegalTrademarks", "http://www.gnu.org/copyleft/gpl.html"
VALUE "OriginalFilename", "rufus.exe"
VALUE "ProductName", "Rufus"
VALUE "ProductVersion", "1.0.7.12
8
"
VALUE "ProductVersion", "1.0.7.12
9
"
END
END
BLOCK "VarFileInfo"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录