Don't load the WINEPS driver until it's needed.
[wine] / dlls / gdi / gdi_main.c
1 /*
2  * GDI initialization code
3  */
4
5 #include <string.h>
6 #include "windef.h"
7 #include "wingdi.h"
8 #include "wine/winbase16.h"
9
10 #include "gdi.h"
11 #include "win16drv.h"
12 #include "winbase.h"
13
14 /***********************************************************************
15  *           GDI initialisation routine
16  */
17 BOOL WINAPI MAIN_GdiInit(HINSTANCE hinstDLL, DWORD reason, LPVOID lpvReserved)
18 {
19     if (reason != DLL_PROCESS_ATTACH) return TRUE;
20
21     /* GDI initialisation */
22     if(!GDI_Init()) return FALSE;
23
24     /* Create the Win16 printer driver */
25     if (!WIN16DRV_Init()) return FALSE;
26
27     return TRUE;
28 }
29
30
31 /***********************************************************************
32  *           Copy   (GDI.250)
33  */
34 void WINAPI Copy16( LPVOID src, LPVOID dst, WORD size )
35 {
36     memcpy( dst, src, size );
37 }