Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
2f1eacfc
Commit
2f1eacfc
authored
Mar 02, 2009
by
James Hawkins
Committed by
Alexandre Julliard
Mar 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Don't treat carriage returns as spaces.
parent
7f3faffc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
30 deletions
+10
-30
db.c
dlls/msi/tests/db.c
+8
-28
tokenize.c
dlls/msi/tokenize.c
+2
-2
No files found.
dlls/msi/tests/db.c
View file @
2f1eacfc
...
...
@@ -5344,11 +5344,8 @@ static void test_carriagereturn(void)
query
=
"CREATE TABLE `Table`
\r
( `A` CHAR(72) NOT NULL PRIMARY KEY `A` )"
;
r
=
run_query
(
hdb
,
0
,
query
);
todo_wine
{
ok
(
r
==
ERROR_BAD_QUERY_SYNTAX
,
"Expected ERROR_BAD_QUERY_SYNTAX, got %d
\n
"
,
r
);
}
ok
(
r
==
ERROR_BAD_QUERY_SYNTAX
,
"Expected ERROR_BAD_QUERY_SYNTAX, got %d
\n
"
,
r
);
query
=
"CREATE TABLE `Table`
\r
( `A` CHAR(72) NOT NULL PRIMARY KEY `A` )"
;
r
=
run_query
(
hdb
,
0
,
query
);
...
...
@@ -5449,11 +5446,8 @@ static void test_carriagereturn(void)
query
=
"CREATE TABLE `Four` ( `A` CHAR(72
\r
) NOT NULL PRIMARY KEY `A` )"
;
r
=
run_query
(
hdb
,
0
,
query
);
todo_wine
{
ok
(
r
==
ERROR_BAD_QUERY_SYNTAX
,
"Expected ERROR_BAD_QUERY_SYNTAX, got %d
\n
"
,
r
);
}
ok
(
r
==
ERROR_BAD_QUERY_SYNTAX
,
"Expected ERROR_BAD_QUERY_SYNTAX, got %d
\n
"
,
r
);
query
=
"CREATE TABLE `Four` ( `A` CHAR(
\r
72) NOT NULL PRIMARY KEY `A` )"
;
r
=
run_query
(
hdb
,
0
,
query
);
...
...
@@ -5487,10 +5481,7 @@ static void test_carriagereturn(void)
size
=
MAX_PATH
;
r
=
MsiRecordGetStringA
(
hrec
,
1
,
buf
,
&
size
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
todo_wine
{
ok
(
!
lstrcmpA
(
buf
,
"
\r
One"
),
"Expected
\"\\
rOne
\"
, got
\"
%s
\"\n
"
,
buf
);
}
ok
(
!
lstrcmpA
(
buf
,
"
\r
One"
),
"Expected
\"\\
rOne
\"
, got
\"
%s
\"\n
"
,
buf
);
MsiCloseHandle
(
hrec
);
...
...
@@ -5500,10 +5491,7 @@ static void test_carriagereturn(void)
size
=
MAX_PATH
;
r
=
MsiRecordGetStringA
(
hrec
,
1
,
buf
,
&
size
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
todo_wine
{
ok
(
!
lstrcmpA
(
buf
,
"Tw
\r
o"
),
"Expected
\"
Tw
\\
ro
\"
, got
\"
%s
\"\n
"
,
buf
);
}
ok
(
!
lstrcmpA
(
buf
,
"Tw
\r
o"
),
"Expected
\"
Tw
\\
ro
\"
, got
\"
%s
\"\n
"
,
buf
);
MsiCloseHandle
(
hrec
);
...
...
@@ -5513,20 +5501,12 @@ static void test_carriagereturn(void)
size
=
MAX_PATH
;
r
=
MsiRecordGetStringA
(
hrec
,
1
,
buf
,
&
size
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
todo_wine
{
ok
(
!
lstrcmpA
(
buf
,
"Three
\r
"
),
"Expected
\"
Three
\r\"
, got
\"
%s
\"\n
"
,
buf
);
}
ok
(
!
lstrcmpA
(
buf
,
"Three
\r
"
),
"Expected
\"
Three
\r\"
, got
\"
%s
\"\n
"
,
buf
);
MsiCloseHandle
(
hrec
);
r
=
MsiViewFetch
(
hview
,
&
hrec
);
todo_wine
{
ok
(
r
==
ERROR_NO_MORE_ITEMS
,
"Expected ERROR_NO_MORE_ITEMS, got %d
\n
"
,
r
);
}
ok
(
r
==
ERROR_NO_MORE_ITEMS
,
"Expected ERROR_NO_MORE_ITEMS, got %d
\n
"
,
r
);
MsiViewClose
(
hview
);
MsiCloseHandle
(
hview
);
...
...
dlls/msi/tokenize.c
View file @
2f1eacfc
...
...
@@ -193,8 +193,8 @@ static const char isIdChar[] = {
int
sqliteGetToken
(
const
WCHAR
*
z
,
int
*
tokenType
){
int
i
;
switch
(
*
z
){
case
' '
:
case
'\t'
:
case
'\n'
:
case
'\f'
:
case
'\r'
:
{
for
(
i
=
1
;
isspace
(
z
[
i
]);
i
++
){}
case
' '
:
case
'\t'
:
case
'\n'
:
case
'\f'
:
{
for
(
i
=
1
;
isspace
(
z
[
i
])
&&
z
[
i
]
!=
'\r'
;
i
++
){}
*
tokenType
=
TK_SPACE
;
return
i
;
}
...
...
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