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
ea05a257
Commit
ea05a257
authored
Jan 09, 2008
by
Lei Zhang
Committed by
Alexandre Julliard
Jan 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Fix a return value in UrlEscapeA.
parent
43bff70a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
url.c
dlls/shlwapi/tests/url.c
+1
-3
url.c
dlls/shlwapi/url.c
+1
-1
No files found.
dlls/shlwapi/tests/url.c
View file @
ea05a257
...
@@ -480,9 +480,7 @@ static void test_UrlEscape(void)
...
@@ -480,9 +480,7 @@ static void test_UrlEscape(void)
size
=
1
;
size
=
1
;
ret
=
UrlEscapeA
(
"/woningplan/woonkamer basis.swf"
,
empty_string
,
&
size
,
URL_ESCAPE_SPACES_ONLY
);
ret
=
UrlEscapeA
(
"/woningplan/woonkamer basis.swf"
,
empty_string
,
&
size
,
URL_ESCAPE_SPACES_ONLY
);
todo_wine
{
ok
(
ret
==
E_POINTER
,
"got %x, expected %x
\n
"
,
ret
,
E_POINTER
);
ok
(
ret
==
E_POINTER
,
"got %x, expected %x
\n
"
,
ret
,
E_POINTER
);
}
ok
(
size
==
34
,
"got %d, expected %d
\n
"
,
size
,
34
);
ok
(
size
==
34
,
"got %d, expected %d
\n
"
,
size
,
34
);
for
(
i
=
0
;
i
<
sizeof
(
TEST_ESCAPE
)
/
sizeof
(
TEST_ESCAPE
[
0
]);
i
++
)
{
for
(
i
=
0
;
i
<
sizeof
(
TEST_ESCAPE
)
/
sizeof
(
TEST_ESCAPE
[
0
]);
i
++
)
{
...
...
dlls/shlwapi/url.c
View file @
ea05a257
...
@@ -860,7 +860,7 @@ HRESULT WINAPI UrlEscapeA(
...
@@ -860,7 +860,7 @@ HRESULT WINAPI UrlEscapeA(
*
pcchEscaped
=
lenA
;
*
pcchEscaped
=
lenA
;
}
else
{
}
else
{
*
pcchEscaped
=
lenA
+
1
;
*
pcchEscaped
=
lenA
+
1
;
ret
=
E_
INVALIDARG
;
ret
=
E_
POINTER
;
}
}
}
}
if
(
escapedW
!=
bufW
)
HeapFree
(
GetProcessHeap
(),
0
,
escapedW
);
if
(
escapedW
!=
bufW
)
HeapFree
(
GetProcessHeap
(),
0
,
escapedW
);
...
...
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