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
a157959d
Commit
a157959d
authored
May 24, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user.exe: Store the GDI instance when it's first loaded.
parent
598a25de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
user.c
dlls/user.exe16/user.c
+3
-4
No files found.
dlls/user.exe16/user.c
View file @
a157959d
...
...
@@ -60,6 +60,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(user);
WORD
USER_HeapSel
=
0
;
/* USER heap selector */
static
HINSTANCE16
gdi_inst
;
struct
gray_string_info
{
GRAYSTRINGPROC16
proc
;
...
...
@@ -1760,11 +1762,8 @@ WORD WINAPI GetFreeSystemResources16( WORD resType )
{
STACK16FRAME
*
stack16
=
MapSL
((
SEGPTR
)
NtCurrentTeb
()
->
WOW32Reserved
);
HANDLE16
oldDS
=
stack16
->
ds
;
HINSTANCE16
gdi_inst
;
int
userPercent
,
gdiPercent
;
if
((
gdi_inst
=
GetModuleHandle16
(
"gdi"
))
<
32
)
return
0
;
switch
(
resType
)
{
case
GFSR_USERRESOURCES
:
...
...
@@ -2060,7 +2059,7 @@ BOOL WINAPI DllEntryPoint( DWORD reason, HINSTANCE16 inst, WORD ds,
USER_HeapSel
=
ds
;
register_wow_handlers
();
LoadLibrary16
(
"gdi.exe"
);
gdi_inst
=
LoadLibrary16
(
"gdi.exe"
);
LoadLibrary16
(
"display.drv"
);
LoadLibrary16
(
"keyboard.drv"
);
LoadLibrary16
(
"mouse.drv"
);
...
...
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