Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
627c9073
Commit
627c9073
authored
Mar 28, 2001
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't load user32 too early on for 16-bit apps, so that app-specific
config can be available while loading it.
parent
dc830b54
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
13 deletions
+23
-13
task.c
loader/task.c
+14
-3
main.c
miscemu/main.c
+9
-10
No files found.
loader/task.c
View file @
627c9073
...
...
@@ -1183,11 +1183,22 @@ HANDLE WINAPI GetFastQueue16( void )
TEB
*
teb
=
NtCurrentTeb
();
if
(
!
teb
)
return
0
;
if
(
!
teb
->
queue
&&
Callout
.
InitThreadInput16
)
if
(
!
teb
->
queue
)
{
if
(
!
Callout
.
InitThreadInput16
)
{
THUNK_InitCallout
();
if
(
!
Callout
.
InitThreadInput16
)
{
FIXME
(
"InitThreadInput16 callout not found, trouble ahead
\n
"
);
return
0
;
}
}
Callout
.
InitThreadInput16
(
0
,
THREAD_IsWin16
(
teb
)
?
4
:
5
);
if
(
!
teb
->
queue
)
FIXME
(
"(): should initialize thread-local queue, expect failure!
\n
"
);
if
(
!
teb
->
queue
)
FIXME
(
"(): should initialize thread-local queue, expect failure!
\n
"
);
}
return
(
HANDLE
)
teb
->
queue
;
}
...
...
miscemu/main.c
View file @
627c9073
...
...
@@ -34,16 +34,6 @@ int WINAPI wine_initial_task( HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, INT
HINSTANCE16
instance
;
HMODULE
user32
;
if
(
!
(
user32
=
LoadLibraryA
(
"user32.dll"
)))
{
MESSAGE
(
"Cannot load user32.dll
\n
"
);
ExitProcess
(
GetLastError
()
);
}
pGetMessageA
=
(
void
*
)
GetProcAddress
(
user32
,
"GetMessageA"
);
pTranslateMessage
=
(
void
*
)
GetProcAddress
(
user32
,
"TranslateMessage"
);
pDispatchMessageA
=
(
void
*
)
GetProcAddress
(
user32
,
"DispatchMessageA"
);
THUNK_InitCallout
();
if
((
instance
=
NE_StartMain
(
main_exe_name
,
main_exe_file
))
<
32
)
{
if
(
instance
==
11
)
/* try DOS format */
...
...
@@ -67,6 +57,15 @@ int WINAPI wine_initial_task( HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, INT
/* Start message loop for desktop window */
if
(
!
(
user32
=
LoadLibraryA
(
"user32.dll"
)))
{
MESSAGE
(
"Cannot load user32.dll
\n
"
);
ExitProcess
(
GetLastError
()
);
}
pGetMessageA
=
(
void
*
)
GetProcAddress
(
user32
,
"GetMessageA"
);
pTranslateMessage
=
(
void
*
)
GetProcAddress
(
user32
,
"TranslateMessage"
);
pDispatchMessageA
=
(
void
*
)
GetProcAddress
(
user32
,
"DispatchMessageA"
);
while
(
GetNumTasks16
()
>
1
&&
pGetMessageA
(
&
msg
,
0
,
0
,
0
)
)
{
pTranslateMessage
(
&
msg
);
...
...
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