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
c1f65018
Commit
c1f65018
authored
Apr 25, 2007
by
Paul Vriens
Committed by
Alexandre Julliard
Apr 25, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: GetComputerNameW is not implemented on win98.
parent
9dafa1fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
environ.c
dlls/kernel32/tests/environ.c
+14
-8
No files found.
dlls/kernel32/tests/environ.c
View file @
c1f65018
...
...
@@ -265,16 +265,22 @@ static void test_GetComputerName(void)
HeapFree
(
GetProcessHeap
(),
0
,
name
);
size
=
0
;
SetLastError
(
0xdeadbeef
);
ret
=
GetComputerNameW
((
LPWSTR
)
0xdeadbeef
,
&
size
);
error
=
GetLastError
();
todo_wine
ok
(
!
ret
&&
error
==
ERROR_BUFFER_OVERFLOW
,
"GetComputerNameW should have failed with ERROR_BUFFER_OVERFLOW instead of %d
\n
"
,
error
);
size
++
;
/* nul terminating character */
nameW
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
*
sizeof
(
nameW
[
0
]));
ok
(
nameW
!=
NULL
,
"HeapAlloc failed with error %d
\n
"
,
GetLastError
());
ret
=
GetComputerNameW
(
nameW
,
&
size
);
ok
(
ret
,
"GetComputerNameW failed with error %d
\n
"
,
GetLastError
());
HeapFree
(
GetProcessHeap
(),
0
,
nameW
);
if
(
error
==
ERROR_CALL_NOT_IMPLEMENTED
)
skip
(
"GetComputerNameW is not implemented
\n
"
);
else
{
todo_wine
ok
(
!
ret
&&
error
==
ERROR_BUFFER_OVERFLOW
,
"GetComputerNameW should have failed with ERROR_BUFFER_OVERFLOW instead of %d
\n
"
,
error
);
size
++
;
/* nul terminating character */
nameW
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
*
sizeof
(
nameW
[
0
]));
ok
(
nameW
!=
NULL
,
"HeapAlloc failed with error %d
\n
"
,
GetLastError
());
ret
=
GetComputerNameW
(
nameW
,
&
size
);
ok
(
ret
,
"GetComputerNameW failed with error %d
\n
"
,
GetLastError
());
HeapFree
(
GetProcessHeap
(),
0
,
nameW
);
}
pGetComputerNameExA
=
GetProcAddress
(
GetModuleHandle
(
"kernel32.dll"
),
"GetComputerNameExA"
);
if
(
!
pGetComputerNameExA
)
...
...
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