Skip to content

Commit 8a5547a

Browse files
committedDec 7, 2012
msiinfo: export tables as binary data
libmsi already adds the trailing \r.
1 parent 3247717 commit 8a5547a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎tools/msiinfo.c

+3
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,9 @@ static int cmd_export(struct Command *cmd, int argc, char **argv)
667667
if (sql) {
668668
r = export_sql(db, argv[2]);
669669
} else {
670+
#if O_BINARY
671+
_setmode(STDOUT_FILENO, O_BINARY);
672+
#endif
670673
r = libmsi_database_export(db, argv[2], STDOUT_FILENO);
671674
}
672675

0 commit comments

Comments
 (0)
Please sign in to comment.