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
62f3eaa7
Commit
62f3eaa7
authored
Aug 21, 2000
by
Andreas Mohr
Committed by
Alexandre Julliard
Aug 21, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Transform every ERR() to WARN() in MakeProcInstance.
parent
fb2f84ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
task.c
loader/task.c
+6
-6
No files found.
loader/task.c
View file @
62f3eaa7
...
...
@@ -475,7 +475,7 @@ void TASK_KillTask( HTASK16 hTask )
* during task creation and deletion) in one of two states: either it
* is the one currently running, then the global variable hCurrentTask
* contains its task handle, or it is not currently running, then it
* is blocked on a special scheduler event, a global handle
to
which
* is blocked on a special scheduler event, a global handle which
* is stored in the task struct.
*
* When the current task yields control, this routine gets called. Its
...
...
@@ -871,7 +871,7 @@ FARPROC16 WINAPI MakeProcInstance16( FARPROC16 func, HANDLE16 hInstance )
if
(
!
HIWORD
(
func
))
{
/* Win95 actually protects via SEH, but this is better for debugging */
ERR
(
"Ouch ! Called with invalid func 0x%08lx !
\n
"
,
(
DWORD
)
func
);
WARN
(
"Ouch ! Called with invalid func 0x%08lx !
\n
"
,
(
DWORD
)
func
);
return
(
FARPROC16
)
0
;
}
...
...
@@ -880,18 +880,18 @@ FARPROC16 WINAPI MakeProcInstance16( FARPROC16 func, HANDLE16 hInstance )
if
(
(
!
(
hInstance
&
4
))
||
((
hInstance
!=
0xffff
)
&&
IS_SELECTOR_FREE
(
hInstance
|
7
))
)
{
ERR
(
"Invalid hInstance (%04x) passed to MakeProcInstance !
\n
"
,
WARN
(
"Invalid hInstance (%04x) passed to MakeProcInstance !
\n
"
,
hInstance
);
return
0
;
}
}
if
(
(
CURRENT_DS
!=
hInstanceSelector
)
if
(
(
GlobalHandleToSel16
(
CURRENT_DS
)
!=
hInstanceSelector
)
&&
(
hInstance
!=
0
)
&&
(
hInstance
!=
0xffff
)
)
{
/* calling MPI with a foreign DSEG is invalid ! */
ERR
(
"Problem with hInstance? Got %04x, using %04x instead
\n
"
,
WARN
(
"Problem with hInstance? Got %04x, using %04x instead
\n
"
,
hInstance
,
CURRENT_DS
);
}
...
...
@@ -916,7 +916,7 @@ FARPROC16 WINAPI MakeProcInstance16( FARPROC16 func, HANDLE16 hInstance )
if
(((
lfunc
[
0
]
==
0x8c
)
&&
(
lfunc
[
1
]
==
0xd8
))
||
/* movw %ds, %ax */
((
lfunc
[
0
]
==
0x1e
)
&&
(
lfunc
[
1
]
==
0x58
))
/* pushw %ds, popw %ax */
)
{
FIXME
(
"This was the (in)famous
\"
thunk useless
\"
warning. We thought we have to overwrite with nop;nop;, but this isn't true.
\n
"
);
WARN
(
"This was the (in)famous
\"
thunk useless
\"
warning. We thought we have to overwrite with nop;nop;, but this isn't true.
\n
"
);
}
*
thunk
++
=
0xb8
;
/* movw instance, %ax */
...
...
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