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
f0a7bc13
Commit
f0a7bc13
authored
Sep 09, 2011
by
Andrew Talbot
Committed by
Alexandre Julliard
Sep 12, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
krnl386.exe16: Constify some variables.
parent
22beb872
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
11 deletions
+14
-11
ne_module.c
dlls/krnl386.exe16/ne_module.c
+8
-6
snoop.c
dlls/krnl386.exe16/snoop.c
+6
-5
No files found.
dlls/krnl386.exe16/ne_module.c
View file @
f0a7bc13
...
...
@@ -963,8 +963,8 @@ static HINSTANCE16 MODULE_LoadModule16( LPCSTR libname, BOOL implicit, BOOL lib_
NE_MODULE
*
pModule
;
const
IMAGE_DOS_HEADER
*
descr
=
NULL
;
const
char
*
file_name
=
NULL
;
char
dllname
[
32
]
,
*
p
;
const
char
*
basename
,
*
main_module
;
char
dllname
[
32
];
const
char
*
basename
,
*
main_module
,
*
p
;
/* strip path information */
...
...
@@ -975,12 +975,14 @@ static HINSTANCE16 MODULE_LoadModule16( LPCSTR libname, BOOL implicit, BOOL lib_
if
(
strlen
(
basename
)
<
sizeof
(
dllname
)
-
6
)
{
char
*
q
;
strcpy
(
dllname
,
basename
);
p
=
strrchr
(
dllname
,
'.'
);
if
(
!
p
)
strcat
(
dllname
,
".dll"
);
for
(
p
=
dllname
;
*
p
;
p
++
)
if
(
*
p
>=
'A'
&&
*
p
<=
'Z'
)
*
p
+=
32
;
q
=
strrchr
(
dllname
,
'.'
);
if
(
!
q
)
strcat
(
dllname
,
".dll"
);
for
(
q
=
dllname
;
*
q
;
q
++
)
if
(
*
q
>=
'A'
&&
*
q
<=
'Z'
)
*
q
+=
32
;
strcpy
(
p
,
"16"
);
strcpy
(
q
,
"16"
);
if
((
mod32
=
LoadLibraryA
(
dllname
)))
{
if
(
!
(
descr
=
(
void
*
)
GetProcAddress
(
mod32
,
"__wine_spec_dos_header"
)))
...
...
dlls/krnl386.exe16/snoop.c
View file @
f0a7bc13
...
...
@@ -99,7 +99,8 @@ static HANDLE16 xsnr = 0;
void
SNOOP16_RegisterDLL
(
HMODULE16
hModule
,
LPCSTR
name
)
{
SNOOP16_DLL
**
dll
=
&
(
firstdll
);
char
*
s
;
const
char
*
p
;
char
*
q
;
if
(
!
TRACE_ON
(
snoop
))
return
;
...
...
@@ -146,11 +147,11 @@ SNOOP16_RegisterDLL(HMODULE16 hModule,LPCSTR name) {
(
*
dll
)
->
next
=
NULL
;
(
*
dll
)
->
hmod
=
hModule
;
if
((
s
=
strrchr
(
name
,
'\\'
)))
name
=
s
+
1
;
if
((
p
=
strrchr
(
name
,
'\\'
)))
name
=
p
+
1
;
strcpy
(
(
*
dll
)
->
name
,
name
);
if
((
s
=
strrchr
((
*
dll
)
->
name
,
'.'
)))
*
s
=
'\0'
;
if
((
q
=
strrchr
((
*
dll
)
->
name
,
'.'
)))
*
q
=
'\0'
;
(
*
dll
)
->
funhandle
=
GlobalHandleToSel16
(
GLOBAL_Alloc
(
GMEM_ZEROINIT
,
65535
,
0
,
WINE_LDT_FLAGS_CODE
));
(
*
dll
)
->
funs
=
GlobalLock16
((
*
dll
)
->
funhandle
);
if
(
!
(
*
dll
)
->
funs
)
{
...
...
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