winscard: small stub implementation of winscard dll (Try 2)
Alexandre Julliard
julliard at winehq.org
Tue May 22 13:38:00 CDT 2007
Mounir IDRASSI <mounir.idrassi at idrix.fr> writes:
> +BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
> +{
> + TRACE("%p,%x,%p\n", hinstDLL, fdwReason, lpvReserved);
> +
> + switch (fdwReason)
> + {
> + case DLL_PROCESS_ATTACH:
> + {
> + DisableThreadLibraryCalls(hinstDLL);
> + WINSCARD_hModule = hinstDLL;
> + /* initialize protocol requests pointers */
> + SCARD_PCI_T0 = &g_rgSCardT0Pci;
> + SCARD_PCI_T1 = &g_rgSCardT1Pci;
> + SCARD_PCI_RAW = &g_rgSCardRawPci;
AFAICT these are supposed to be macros, not variables. Also your
indentation is messed up.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list