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
9d7c5911
Commit
9d7c5911
authored
Oct 11, 2005
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Oct 11, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NT3.51 returns ERROR_MORE_DATA.
parent
5fd4aa6f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
8 deletions
+23
-8
atom.c
dlls/kernel/tests/atom.c
+23
-8
No files found.
dlls/kernel/tests/atom.c
View file @
9d7c5911
...
...
@@ -461,13 +461,17 @@ static void test_local_get_atom_name(void)
ok
(
!
len
,
"bad length %d
\n
"
,
len
);
len
=
GetAtomNameA
(
(
ATOM
)
i
,
buf
,
1
);
ok
(
!
len
,
"succeed
\n
"
);
ok
(
!
len
,
"succeed with %u for %u
\n
"
,
len
,
i
);
/* ERROR_MORE_DATA is on nt3.51 sp5 */
if
(
i
)
todo_wine
ok
(
GetLastError
()
==
ERROR_INSUFFICIENT_BUFFER
||
GetLastError
()
==
0xdeadbeef
,
/* the Win 9x way */
"wrong error conditions %lu for %u
\n
"
,
GetLastError
(),
i
);
ok
(
GetLastError
()
==
ERROR_INSUFFICIENT_BUFFER
||
GetLastError
()
==
ERROR_MORE_DATA
||
GetLastError
()
==
0xdeadbeef
,
/* the Win 9x way */
"wrong error conditions %lu for %u
\n
"
,
GetLastError
(),
i
);
else
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
||
GetLastError
()
==
ERROR_MORE_DATA
||
GetLastError
()
==
0xdeadbeef
,
/* the Win 9x way */
"wrong error conditions %lu for %u
\n
"
,
GetLastError
(),
i
);
}
...
...
@@ -494,7 +498,11 @@ static void test_local_get_atom_name(void)
do_initA
(
in
,
"abcdefghij"
,
256
);
atom
=
AddAtomA
(
in
);
ok
(
!
atom
,
"succeeded
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
||
GetLastError
()
==
0xdeadbeef
,
/* the Win 9x way */
/* ERROR_MORE_DATA is on nt3.51 sp5 */
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
||
GetLastError
()
==
ERROR_MORE_DATA
||
GetLastError
()
==
0xdeadbeef
,
/* the Win 9x way */
"wrong error code (%lu)
\n
"
,
GetLastError
());
if
(
unicode_OS
)
...
...
@@ -520,8 +528,11 @@ static void test_local_get_atom_name(void)
ok
(
!
len
,
"bad length %d
\n
"
,
len
);
len
=
GetAtomNameW
(
(
ATOM
)
i
,
outW
,
1
);
ok
(
!
len
,
"succeed
\n
"
);
ok
(
GetLastError
()
==
(
i
?
ERROR_INSUFFICIENT_BUFFER
:
ERROR_INVALID_PARAMETER
),
ok
(
!
len
,
"succeed with %u for %u
\n
"
,
len
,
i
);
/* ERROR_MORE_DATA is on nt3.51 sp5 */
ok
(
GetLastError
()
==
ERROR_MORE_DATA
||
GetLastError
()
==
(
i
?
ERROR_INSUFFICIENT_BUFFER
:
ERROR_INVALID_PARAMETER
),
"wrong error conditions %lu for %u
\n
"
,
GetLastError
(),
i
);
}
do_initW
(
inW
,
"abcdefghij"
,
255
);
...
...
@@ -546,7 +557,11 @@ static void test_local_get_atom_name(void)
do_initW
(
inW
,
"abcdefghij"
,
256
);
atom
=
AddAtomW
(
inW
);
ok
(
!
atom
,
"succeeded
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"wrong error code (%lu)
\n
"
,
GetLastError
());
/* ERROR_MORE_DATA is on nt3.51 sp5 */
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
||
GetLastError
()
==
ERROR_MORE_DATA
,
"wrong error code (%lu)
\n
"
,
GetLastError
());
}
}
...
...
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