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
f0dd63cb
Commit
f0dd63cb
authored
Dec 13, 2006
by
Francois Gouget
Committed by
Alexandre Julliard
Dec 14, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: The tests link with msvcrt(d).dll now, so use GetModuleHandle() rather than LoadLibrary().
parent
7aa9ea4e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
cpp.c
dlls/msvcrt/tests/cpp.c
+3
-1
string.c
dlls/msvcrt/tests/string.c
+7
-2
No files found.
dlls/msvcrt/tests/cpp.c
View file @
f0dd63cb
...
...
@@ -184,7 +184,9 @@ static void* do_call_func2(void *func, void *_this, const void* arg)
static
void
InitFunctionPtrs
(
void
)
{
hMsvcrt
=
LoadLibraryA
(
"msvcrt.dll"
);
hMsvcrt
=
GetModuleHandleA
(
"msvcrt.dll"
);
if
(
!
hMsvcrt
)
hMsvcrt
=
GetModuleHandleA
(
"msvcrtd.dll"
);
ok
(
hMsvcrt
!=
0
,
"LoadLibraryA failed
\n
"
);
if
(
hMsvcrt
)
{
...
...
dlls/msvcrt/tests/string.c
View file @
f0dd63cb
...
...
@@ -111,8 +111,12 @@ START_TEST(string)
{
void
*
mem
;
static
const
char
xilstring
[]
=
"c:/xilinx"
;
int
nLen
=
strlen
(
xilstring
);
HMODULE
hMsvcrt
=
LoadLibraryA
(
"msvcrt.dll"
);
int
nLen
;
HMODULE
hMsvcrt
;
hMsvcrt
=
GetModuleHandleA
(
"msvcrt.dll"
);
if
(
!
hMsvcrt
)
hMsvcrt
=
GetModuleHandleA
(
"msvcrtd.dll"
);
ok
(
hMsvcrt
!=
0
,
"LoadLibraryA failed
\n
"
);
SET
(
pmemcpy
,
"memcpy"
);
SET
(
pmemcmp
,
"memcmp"
);
...
...
@@ -122,6 +126,7 @@ START_TEST(string)
mem
=
malloc
(
100
);
ok
(
mem
!=
NULL
,
"memory not allocated for size 0
\n
"
);
strcpy
((
char
*
)
mem
,
xilstring
);
nLen
=
strlen
(
xilstring
);
pmemcpy
((
char
*
)
mem
+
5
,
mem
,
nLen
+
1
);
ok
(
pmemcmp
((
char
*
)
mem
+
5
,
xilstring
,
nLen
)
==
0
,
"Got result %s
\n
"
,(
char
*
)
mem
+
5
);
...
...
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