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
5d9801bc
Commit
5d9801bc
authored
May 24, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user.exe: Make sure 16-bit user and gdi never get unloaded.
parent
54132d97
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
user.c
dlls/user.exe16/user.c
+3
-2
No files found.
dlls/user.exe16/user.c
View file @
5d9801bc
...
...
@@ -1763,7 +1763,7 @@ WORD WINAPI GetFreeSystemResources16( WORD resType )
HINSTANCE16
gdi_inst
;
int
userPercent
,
gdiPercent
;
if
((
gdi_inst
=
LoadLibrary16
(
"GDI
"
))
<
32
)
return
0
;
if
((
gdi_inst
=
GetModuleHandle16
(
"gdi
"
))
<
32
)
return
0
;
switch
(
resType
)
{
...
...
@@ -1793,7 +1793,6 @@ WORD WINAPI GetFreeSystemResources16( WORD resType )
userPercent
=
gdiPercent
=
0
;
break
;
}
FreeLibrary16
(
gdi_inst
);
TRACE
(
"<- userPercent %d, gdiPercent %d
\n
"
,
userPercent
,
gdiPercent
);
return
(
WORD
)
min
(
userPercent
,
gdiPercent
);
}
...
...
@@ -2061,9 +2060,11 @@ BOOL WINAPI DllEntryPoint( DWORD reason, HINSTANCE16 inst, WORD ds,
USER_HeapSel
=
ds
;
register_wow_handlers
();
LoadLibrary16
(
"gdi.exe"
);
LoadLibrary16
(
"display.drv"
);
LoadLibrary16
(
"keyboard.drv"
);
LoadLibrary16
(
"mouse.drv"
);
LoadLibrary16
(
"user.exe"
);
/* make sure it never gets unloaded */
return
TRUE
;
}
...
...
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