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
f1a6bf70
Commit
f1a6bf70
authored
Oct 21, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Oct 22, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Fix module tests compilation with __WINESRC__ defined.
parent
9d5ddd25
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
module.c
dlls/kernel32/tests/module.c
+4
-4
No files found.
dlls/kernel32/tests/module.c
View file @
f1a6bf70
...
...
@@ -46,7 +46,7 @@ static void testGetModuleFileName(const char* name)
WCHAR
bufW
[
MAX_PATH
];
DWORD
len1A
,
len1W
=
0
,
len2A
,
len2W
=
0
;
hMod
=
(
name
)
?
GetModuleHandle
(
name
)
:
NULL
;
hMod
=
(
name
)
?
GetModuleHandle
A
(
name
)
:
NULL
;
/* first test, with enough space in buffer */
memset
(
bufA
,
'-'
,
sizeof
(
bufA
));
...
...
@@ -157,7 +157,7 @@ static void testNestedLoadLibraryA(void)
* - it must not already be loaded
* - it must not have a 16-bit counterpart
*/
GetWindowsDirectory
(
path1
,
sizeof
(
path1
));
GetWindowsDirectory
A
(
path1
,
sizeof
(
path1
));
strcat
(
path1
,
"
\\
system
\\
"
);
strcat
(
path1
,
dllname
);
hModule1
=
LoadLibraryA
(
path1
);
...
...
@@ -167,7 +167,7 @@ static void testNestedLoadLibraryA(void)
return
;
}
GetWindowsDirectory
(
path2
,
sizeof
(
path2
));
GetWindowsDirectory
A
(
path2
,
sizeof
(
path2
));
strcat
(
path2
,
"
\\
system32
\\
"
);
strcat
(
path2
,
dllname
);
hModule2
=
LoadLibraryA
(
path2
);
...
...
@@ -189,7 +189,7 @@ static void testNestedLoadLibraryA(void)
ok
(
FreeLibrary
(
hModule3
),
"FreeLibrary() failed
\n
"
);
ok
(
FreeLibrary
(
hModule2
),
"FreeLibrary() failed
\n
"
);
ok
(
FreeLibrary
(
hModule1
),
"FreeLibrary() failed
\n
"
);
ok
(
GetModuleHandle
(
dllname
)
==
NULL
,
"%s was not fully unloaded
\n
"
,
dllname
);
ok
(
GetModuleHandle
A
(
dllname
)
==
NULL
,
"%s was not fully unloaded
\n
"
,
dllname
);
/* Try to load the dll again, if refcounting is ok, this should work */
hModule1
=
LoadLibraryA
(
path1
);
...
...
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