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
0bb4bddf
Commit
0bb4bddf
authored
May 06, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Store the module instance we get in DllMain to avoid extra LoadLibrary
calls.
parent
c3116c5e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
driver.c
dlls/wineps/driver.c
+2
-2
init.c
dlls/wineps/init.c
+2
-0
psdrv.h
dlls/wineps/psdrv.h
+1
-2
No files found.
dlls/wineps/driver.c
View file @
0bb4bddf
...
...
@@ -349,7 +349,7 @@ INT PSDRV_ExtDeviceMode(LPSTR lpszDriver, HWND hwnd, LPDEVMODEA lpdmOutput,
/* If DM_PROMPT is set, present modal dialog box */
if
(
dwMode
&
DM_PROMPT
)
{
HINSTANCE
hinstComctl32
,
hinstWineps32
=
LoadLibraryA
(
"WINEPS"
)
;
HINSTANCE
hinstComctl32
;
HPROPSHEETPAGE
hpsp
[
1
];
PROPSHEETPAGEW
psp
;
PROPSHEETHEADERW
psh
;
...
...
@@ -371,7 +371,7 @@ INT PSDRV_ExtDeviceMode(LPSTR lpszDriver, HWND hwnd, LPDEVMODEA lpdmOutput,
di
->
pi
=
pi
;
di
->
dlgdm
=
dlgdm
;
psp
.
dwSize
=
sizeof
(
psp
);
psp
.
hInstance
=
hinstWineps32
;
psp
.
hInstance
=
PSDRV_hInstance
;
psp
.
u
.
pszTemplate
=
PAPERW
;
psp
.
u2
.
pszIcon
=
NULL
;
psp
.
pfnDlgProc
=
PSDRV_PaperDlgProc
;
...
...
dlls/wineps/init.c
View file @
0bb4bddf
...
...
@@ -101,6 +101,7 @@ static PSDRV_DEVMODEA DefaultDevmode =
}
};
HINSTANCE
PSDRV_hInstance
=
0
;
HANDLE
PSDRV_Heap
=
0
;
static
HFONT
PSDRV_DefaultFont
=
0
;
...
...
@@ -122,6 +123,7 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
switch
(
reason
)
{
case
DLL_PROCESS_ATTACH
:
PSDRV_hInstance
=
hinst
;
DisableThreadLibraryCalls
(
hinst
);
PSDRV_Heap
=
HeapCreate
(
0
,
0x10000
,
0
);
...
...
dlls/wineps/psdrv.h
View file @
0bb4bddf
...
...
@@ -381,6 +381,7 @@ extern INT16 WINAPI PSDRV_ExtDeviceMode16(HWND16 hwnd, HANDLE16 hDriver,
LPDEVMODEA
lpdmOutput
,
LPSTR
lpszDevice
,
LPSTR
lpszPort
,
LPDEVMODEA
lpdmInput
,
LPSTR
lpszProfile
,
WORD
fwMode
);
extern
HINSTANCE
PSDRV_hInstance
;
extern
HANDLE
PSDRV_Heap
;
extern
char
*
PSDRV_ANSIVector
[
256
];
...
...
@@ -394,8 +395,6 @@ extern BOOL PSDRV_AddAFMtoList(FONTFAMILY **head, const AFM *afm,
BOOL
*
p_added
);
extern
void
PSDRV_FreeAFMList
(
FONTFAMILY
*
head
);
extern
BOOL
WINAPI
PSDRV_Init
(
HINSTANCE
hinst
,
DWORD
reason
,
LPVOID
reserved
);
extern
INT
PSDRV_XWStoDS
(
PSDRV_PDEVICE
*
physDev
,
INT
width
);
extern
INT
PSDRV_YWStoDS
(
PSDRV_PDEVICE
*
physDev
,
INT
height
);
...
...
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