d3dx8: Add DllMain.

This commit is contained in:
Louis Lenders 2007-10-04 08:50:36 +01:00 committed by Alexandre Julliard
parent cb124c9b12
commit 547d406719
1 changed files with 18 additions and 0 deletions

View File

@ -90,3 +90,21 @@ HRESULT WINAPI D3DXAssembleShaderFromFileW(LPSTR pSrcFile, DWORD Flags,
FIXME("(void): stub\n");
return D3D_OK;
}
/***********************************************************************
* DllMain.
*/
BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved)
{
switch(reason)
{
case DLL_WINE_PREATTACH:
return FALSE; /* prefer native version */
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(inst);
break;
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}