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
90911216
Commit
90911216
authored
Dec 02, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 02, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Remove no longer used variables.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
54d4c905
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
12 deletions
+5
-12
kernel_main.c
dlls/kernel32/kernel_main.c
+0
-1
kernel_private.h
dlls/kernel32/kernel_private.h
+0
-4
path.c
dlls/kernel32/path.c
+5
-3
process.c
dlls/kernel32/process.c
+0
-4
No files found.
dlls/kernel32/kernel_main.c
View file @
90911216
...
...
@@ -120,7 +120,6 @@ static void copy_startup_info(void)
*/
static
BOOL
process_attach
(
HMODULE
module
)
{
kernel32_handle
=
module
;
RtlSetUnhandledExceptionFilter
(
UnhandledExceptionFilter
);
NtQuerySystemInformation
(
SystemBasicInformation
,
&
system_info
,
sizeof
(
system_info
),
NULL
);
...
...
dlls/kernel32/kernel_private.h
View file @
90911216
...
...
@@ -29,12 +29,8 @@ static inline BOOL set_ntstatus( NTSTATUS status )
return
!
status
;
}
extern
HMODULE
kernel32_handle
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
DWORD
FILE_name_WtoA
(
LPCWSTR
src
,
INT
srclen
,
LPSTR
dest
,
INT
destlen
)
DECLSPEC_HIDDEN
;
...
...
dlls/kernel32/path.c
View file @
90911216
...
...
@@ -40,6 +40,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(file);
#define MAX_PATHNAME_LEN 1024
static
const
WCHAR
system_dir
[]
=
L"C:
\\
windows
\\
system32"
;
/***********************************************************************
* copy_filename_WtoA
*
...
...
@@ -232,10 +234,10 @@ BOOL WINAPI CreateDirectoryExA( LPCSTR template, LPCSTR path, LPSECURITY_ATTRIBU
*/
UINT
WINAPI
GetSystemDirectoryW
(
LPWSTR
path
,
UINT
count
)
{
UINT
len
=
lstrlenW
(
DIR_System
)
+
1
;
UINT
len
=
ARRAY_SIZE
(
system_dir
)
;
if
(
path
&&
count
>=
len
)
{
lstrcpyW
(
path
,
DIR_System
);
lstrcpyW
(
path
,
system_dir
);
len
--
;
}
return
len
;
...
...
@@ -249,7 +251,7 @@ UINT WINAPI GetSystemDirectoryW( LPWSTR 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
);
}
...
...
dlls/kernel32/process.c
View file @
90911216
...
...
@@ -49,12 +49,8 @@ typedef struct
DWORD
dwReserved
;
}
LOADPARMS32
;
HMODULE
kernel32_handle
=
0
;
SYSTEM_BASIC_INFORMATION
system_info
=
{
0
};
const
WCHAR
DIR_Windows
[]
=
L"C:
\\
windows"
;
const
WCHAR
DIR_System
[]
=
L"C:
\\
windows
\\
system32"
;
/* Process flags */
#define PDB32_DEBUGGED 0x0001
/* Process is being debugged */
#define PDB32_WIN16_PROC 0x0008
/* Win16 process */
...
...
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