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
8d267a60
Commit
8d267a60
authored
May 02, 1999
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only check number of tasks after first message.
Use a 16-bit module for creating the initial task.
parent
14594135
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
main.c
miscemu/main.c
+4
-3
No files found.
miscemu/main.c
View file @
8d267a60
...
...
@@ -107,11 +107,12 @@ void MAIN_EmulatorRun( void )
/* Start message loop for desktop window */
while
(
GetNumTasks16
()
>
1
&&
Callout
.
GetMessageA
(
&
msg
,
0
,
0
,
0
)
)
do
{
if
(
!
Callout
.
GetMessageA
(
&
msg
,
0
,
0
,
0
))
break
;
Callout
.
TranslateMessage
(
&
msg
);
Callout
.
DispatchMessageA
(
&
msg
);
}
}
while
(
GetNumTasks16
()
>
1
);
ExitProcess
(
0
);
}
...
...
@@ -156,7 +157,7 @@ int main( int argc, char *argv[] )
if
(
!
LoadLibraryA
(
"KERNEL32"
))
return
1
;
/* Create initial task */
if
(
!
(
pModule
=
NE_GetPtr
(
GetModuleHandle16
(
"KERNEL
32
"
)
))
)
return
1
;
if
(
!
(
pModule
=
NE_GetPtr
(
GetModuleHandle16
(
"KERNEL"
)
))
)
return
1
;
if
(
!
TASK_Create
(
THREAD_Current
(),
pModule
,
0
,
0
,
FALSE
)
)
return
1
;
/* Initialize CALL32 routines */
...
...
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