Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
c7e36d8b
Commit
c7e36d8b
authored
May 12, 2011
by
Hans Leidekker
Committed by
Alexandre Julliard
May 12, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Unescape ^Q^Y sequences in text archives.
parent
e2ba5dce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
database.c
dlls/msi/database.c
+5
-0
db.c
dlls/msi/tests/db.c
+2
-2
No files found.
dlls/msi/database.c
View file @
c7e36d8b
...
...
@@ -575,6 +575,11 @@ static void msi_parse_line(LPWSTR *line, LPWSTR **entries, DWORD *num_entries, D
while
(
chars_left
&&
*
ptr
!=
'\t'
&&
*
ptr
!=
'\n'
&&
*
ptr
!=
'\r'
)
{
if
(
!*
ptr
)
*
ptr
=
'\n'
;
/* convert embedded nulls to \n */
if
(
ptr
>
*
line
&&
*
ptr
==
'\x19'
&&
*
(
ptr
-
1
)
==
'\x11'
)
{
*
ptr
=
'\n'
;
*
(
ptr
-
1
)
=
'\r'
;
}
ptr
++
;
chars_left
--
;
}
...
...
dlls/msi/tests/db.c
View file @
c7e36d8b
...
...
@@ -9259,7 +9259,7 @@ static void test_embedded_nulls(void)
"Dialog
\t
Text
\n
"
"s72
\t
L0
\n
"
"Control
\t
Dialog
\n
"
"LicenseAgreementDlg
\t
text
\0
text"
;
"LicenseAgreementDlg
\t
text
\
x11\x19
text
\
0
text"
;
UINT
r
,
sz
;
MSIHANDLE
hdb
,
hrec
;
char
buffer
[
32
];
...
...
@@ -9280,7 +9280,7 @@ static void test_embedded_nulls(void)
sz
=
sizeof
(
buffer
);
r
=
MsiRecordGetStringA
(
hrec
,
1
,
buffer
,
&
sz
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to get string %u
\n
"
,
r
);
ok
(
!
memcmp
(
"text
\
n
text"
,
buffer
,
sizeof
(
"
text
\n
text"
)
-
1
),
"wrong buffer contents
\"
%s
\"\n
"
,
buffer
);
ok
(
!
memcmp
(
"text
\
r\n
text
\n
text"
,
buffer
,
sizeof
(
"text
\r\n
text
\n
text"
)
-
1
),
"wrong buffer contents
\"
%s
\"\n
"
,
buffer
);
MsiCloseHandle
(
hrec
);
MsiCloseHandle
(
hdb
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment