[v2 4/5] kernel32/tests: Export func and struct for new LIBRARY_SEARCH tests
Carlos Palminha
CARLOS.PALMINHA at synopsys.com
Tue Aug 8 09:01:51 CDT 2017
Signed-off-by: Carlos Palminha <palminha at synopsys.com>
---
dlls/kernel32/kernel_private.h | 3 +++
dlls/kernel32/path.c | 2 +-
dlls/kernel32/tests/loader.c | 4 ++--
3 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/dlls/kernel32/kernel_private.h b/dlls/kernel32/kernel_private.h
index 076f1470962..5ede351bb20 100644
--- a/dlls/kernel32/kernel_private.h
+++ b/dlls/kernel32/kernel_private.h
@@ -88,6 +88,9 @@ struct binary_info
void *res_end;
};
+/* path.c */
+extern BOOL contains_pathW (LPCWSTR name);
+
/* module.c */
extern WCHAR *MODULE_get_dll_load_path_flags( DWORD flags ) DECLSPEC_HIDDEN;
extern WCHAR *MODULE_get_dll_load_path( LPCWSTR module ) DECLSPEC_HIDDEN;
diff --git a/dlls/kernel32/path.c b/dlls/kernel32/path.c
index c746693a759..41a9cd89729 100644
--- a/dlls/kernel32/path.c
+++ b/dlls/kernel32/path.c
@@ -758,7 +758,7 @@ UINT WINAPI GetTempFileNameW( LPCWSTR path, LPCWSTR prefix, UINT unique, LPWSTR
* Check if the file name contains a path; helper for SearchPathW.
* A relative path is not considered a path unless it starts with ./ or ../
*/
-static inline BOOL contains_pathW (LPCWSTR name)
+inline BOOL contains_pathW (LPCWSTR name)
{
if (RtlDetermineDosPathNameType_U( name ) != RELATIVE_PATH) return TRUE;
if (name[0] != '.') return FALSE;
diff --git a/dlls/kernel32/tests/loader.c b/dlls/kernel32/tests/loader.c
index 09c21d81203..68d11890137 100644
--- a/dlls/kernel32/tests/loader.c
+++ b/dlls/kernel32/tests/loader.c
@@ -84,7 +84,7 @@ static PVOID RVAToAddr(DWORD_PTR rva, HMODULE module)
static IMAGE_DOS_HEADER dos_header;
-static const IMAGE_NT_HEADERS nt_header_template =
+const IMAGE_NT_HEADERS nt_header_template =
{
IMAGE_NT_SIGNATURE, /* Signature */
{
@@ -162,7 +162,7 @@ static IMAGE_SECTION_HEADER section =
static const char filler[0x1000];
static const char section_data[0x10] = "section data";
-static DWORD create_test_dll( const IMAGE_DOS_HEADER *dos_header, UINT dos_size,
+DWORD create_test_dll( const IMAGE_DOS_HEADER *dos_header, UINT dos_size,
const IMAGE_NT_HEADERS *nt_header, const char *dll_name )
{
DWORD dummy, size, file_align;
--
2.11.0
More information about the wine-patches
mailing list