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
763694a6
Commit
763694a6
authored
Dec 14, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Dec 15, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Only set the size ourselves if we are on W2K.
parent
05287335
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
environ.c
dlls/kernel32/tests/environ.c
+11
-4
No files found.
dlls/kernel32/tests/environ.c
View file @
763694a6
...
...
@@ -395,7 +395,11 @@ static void test_GetComputerNameExA(void)
ok
(
error
==
ERROR_MORE_DATA
,
"Expected ERROR_MORE_DATA, got %d
\n
"
,
error
);
/* size is not set in win2k */
size
=
MAX_COMP_NAME
;
if
(
size
==
0
)
{
win_skip
(
"Win2k doesn't set the size
\n
"
);
size
=
MAX_COMP_NAME
;
}
name
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
*
sizeof
(
name
[
0
]));
ok
(
name
!=
NULL
,
"HeapAlloc failed with error %d
\n
"
,
GetLastError
());
ret
=
pGetComputerNameExA
(
ComputerNameDnsDomain
,
name
,
&
size
);
...
...
@@ -410,7 +414,8 @@ static void test_GetComputerNameExA(void)
ok
(
error
==
ERROR_MORE_DATA
,
"Expected ERROR_MORE_DATA, got %d
\n
"
,
error
);
/* size is not set in win2k */
size
=
MAX_COMP_NAME
;
if
(
size
==
0
)
size
=
MAX_COMP_NAME
;
name
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
*
sizeof
(
name
[
0
]));
ok
(
name
!=
NULL
,
"HeapAlloc failed with error %d
\n
"
,
GetLastError
());
ret
=
pGetComputerNameExA
(
ComputerNameDnsFullyQualified
,
name
,
&
size
);
...
...
@@ -425,7 +430,8 @@ static void test_GetComputerNameExA(void)
ok
(
error
==
ERROR_MORE_DATA
,
"Expected ERROR_MORE_DATA, got %d
\n
"
,
error
);
/* size is not set in win2k */
size
=
MAX_COMP_NAME
;
if
(
size
==
0
)
size
=
MAX_COMP_NAME
;
name
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
*
sizeof
(
name
[
0
]));
ok
(
name
!=
NULL
,
"HeapAlloc failed with error %d
\n
"
,
GetLastError
());
ret
=
pGetComputerNameExA
(
ComputerNameDnsHostname
,
name
,
&
size
);
...
...
@@ -440,7 +446,8 @@ static void test_GetComputerNameExA(void)
ok
(
error
==
ERROR_MORE_DATA
,
"Expected ERROR_MORE_DATA, got %d
\n
"
,
error
);
/* size is not set in win2k */
size
=
MAX_COMP_NAME
;
if
(
size
==
0
)
size
=
MAX_COMP_NAME
;
name
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
*
sizeof
(
name
[
0
]));
ok
(
name
!=
NULL
,
"HeapAlloc failed with error %d
\n
"
,
GetLastError
());
ret
=
pGetComputerNameExA
(
ComputerNameNetBIOS
,
name
,
&
size
);
...
...
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