mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:13:56 +00:00
localspl: Remember hInstance, needed for resources.
This commit is contained in:
parent
c9dc7ccda2
commit
b8a2b17af6
2 changed files with 33 additions and 1 deletions
|
@ -35,10 +35,12 @@
|
|||
#include "ddk/winsplp.h"
|
||||
|
||||
#include "wine/debug.h"
|
||||
|
||||
#include "localspl_private.h"
|
||||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(localspl);
|
||||
|
||||
HINSTANCE LOCALSPL_hInstance = NULL;
|
||||
|
||||
/*****************************************************
|
||||
* DllMain
|
||||
*/
|
||||
|
@ -53,6 +55,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
|||
|
||||
case DLL_PROCESS_ATTACH:
|
||||
DisableThreadLibraryCalls( hinstDLL );
|
||||
LOCALSPL_hInstance = hinstDLL;
|
||||
break;
|
||||
}
|
||||
return TRUE;
|
||||
|
|
29
dlls/localspl/localspl_private.h
Normal file
29
dlls/localspl/localspl_private.h
Normal file
|
@ -0,0 +1,29 @@
|
|||
/*
|
||||
* Implementation of the Local Printmonitor: internal include file
|
||||
*
|
||||
* Copyright 2006 Detlef Riekenberg
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#ifndef __WINE_LOCALSPL_PRIVATE__
|
||||
#define __WINE_LOCALSPL_PRIVATE__
|
||||
|
||||
|
||||
/* ## DLL-wide Globals ## */
|
||||
extern HINSTANCE LOCALSPL_hInstance;
|
||||
|
||||
|
||||
#endif /* __WINE_LOCALSPL_PRIVATE__ */
|
Loading…
Reference in a new issue