Commit 90911216 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

kernel32: Remove no longer used variables.

parent 54d4c905
...@@ -120,7 +120,6 @@ static void copy_startup_info(void) ...@@ -120,7 +120,6 @@ static void copy_startup_info(void)
*/ */
static BOOL process_attach( HMODULE module ) static BOOL process_attach( HMODULE module )
{ {
kernel32_handle = module;
RtlSetUnhandledExceptionFilter( UnhandledExceptionFilter ); RtlSetUnhandledExceptionFilter( UnhandledExceptionFilter );
NtQuerySystemInformation( SystemBasicInformation, &system_info, sizeof(system_info), NULL ); NtQuerySystemInformation( SystemBasicInformation, &system_info, sizeof(system_info), NULL );
......
...@@ -29,12 +29,8 @@ static inline BOOL set_ntstatus( NTSTATUS status ) ...@@ -29,12 +29,8 @@ static inline BOOL set_ntstatus( NTSTATUS status )
return !status; return !status;
} }
extern HMODULE kernel32_handle DECLSPEC_HIDDEN;
extern SYSTEM_BASIC_INFORMATION system_info DECLSPEC_HIDDEN; extern SYSTEM_BASIC_INFORMATION system_info DECLSPEC_HIDDEN;
extern const WCHAR DIR_Windows[] DECLSPEC_HIDDEN;
extern const WCHAR DIR_System[] DECLSPEC_HIDDEN;
extern WCHAR *FILE_name_AtoW( LPCSTR name, BOOL alloc ) DECLSPEC_HIDDEN; extern WCHAR *FILE_name_AtoW( LPCSTR name, BOOL alloc ) DECLSPEC_HIDDEN;
extern DWORD FILE_name_WtoA( LPCWSTR src, INT srclen, LPSTR dest, INT destlen ) DECLSPEC_HIDDEN; extern DWORD FILE_name_WtoA( LPCWSTR src, INT srclen, LPSTR dest, INT destlen ) DECLSPEC_HIDDEN;
......
...@@ -40,6 +40,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(file); ...@@ -40,6 +40,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(file);
#define MAX_PATHNAME_LEN 1024 #define MAX_PATHNAME_LEN 1024
static const WCHAR system_dir[] = L"C:\\windows\\system32";
/*********************************************************************** /***********************************************************************
* copy_filename_WtoA * copy_filename_WtoA
* *
...@@ -232,10 +234,10 @@ BOOL WINAPI CreateDirectoryExA( LPCSTR template, LPCSTR path, LPSECURITY_ATTRIBU ...@@ -232,10 +234,10 @@ BOOL WINAPI CreateDirectoryExA( LPCSTR template, LPCSTR path, LPSECURITY_ATTRIBU
*/ */
UINT WINAPI GetSystemDirectoryW( LPWSTR path, UINT count ) UINT WINAPI GetSystemDirectoryW( LPWSTR path, UINT count )
{ {
UINT len = lstrlenW( DIR_System ) + 1; UINT len = ARRAY_SIZE(system_dir);
if (path && count >= len) if (path && count >= len)
{ {
lstrcpyW( path, DIR_System ); lstrcpyW( path, system_dir );
len--; len--;
} }
return len; return len;
...@@ -249,7 +251,7 @@ UINT WINAPI GetSystemDirectoryW( LPWSTR path, UINT count ) ...@@ -249,7 +251,7 @@ UINT WINAPI GetSystemDirectoryW( LPWSTR path, UINT count )
*/ */
UINT WINAPI GetSystemDirectoryA( LPSTR path, UINT count ) UINT WINAPI GetSystemDirectoryA( LPSTR path, UINT count )
{ {
return copy_filename_WtoA( DIR_System, path, count ); return copy_filename_WtoA( system_dir, path, count );
} }
......
...@@ -49,12 +49,8 @@ typedef struct ...@@ -49,12 +49,8 @@ typedef struct
DWORD dwReserved; DWORD dwReserved;
} LOADPARMS32; } LOADPARMS32;
HMODULE kernel32_handle = 0;
SYSTEM_BASIC_INFORMATION system_info = { 0 }; SYSTEM_BASIC_INFORMATION system_info = { 0 };
const WCHAR DIR_Windows[] = L"C:\\windows";
const WCHAR DIR_System[] = L"C:\\windows\\system32";
/* Process flags */ /* Process flags */
#define PDB32_DEBUGGED 0x0001 /* Process is being debugged */ #define PDB32_DEBUGGED 0x0001 /* Process is being debugged */
#define PDB32_WIN16_PROC 0x0008 /* Win16 process */ #define PDB32_WIN16_PROC 0x0008 /* Win16 process */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment