Le ven 17/12/2004 à 11:20, Peter Berg Larsen a écrit : > > There might be a better way but I dont know it. > > Changelog: > Defines DirectPlayLobbyCreate to be either the W or A version depending > on the UNICODE. Needed for warzone 2100. > > Peter > > diff -u -r wine-20041201-org/include/dplobby.h wine-20041201/include/dplobby.h > --- wine-20041201-org/include/dplobby.h 2004-10-05 06:38:15.000000000 > +0200 > +++ wine-20041201/include/dplobby.h 2004-12-12 11:45:00.000000000 +0100 > @@ -342,7 +342,11 @@ > > } DPAPPLICATIONDESC, *LPDPAPPLICATIONDESC; > > - > +#ifdef UNICODE > +# define DirectPlayLobbyCreate DirectPlayLobbyCreateW > +#else > +# define DirectPlayLobbyCreate DirectPlayLobbyCreateA > +#endif > > extern HRESULT WINAPI DirectPlayLobbyCreateW(LPGUID, LPDIRECTPLAYLOBBY*, > IUnknown*, LPVOID, DWORD ); > extern HRESULT WINAPI DirectPlayLobbyCreateA(LPGUID, LPDIRECTPLAYLOBBYA*, > IUnknown*, LPVOID, DWORD );
Use #define DirectPlayLobbyCreate WINELIB_NAME_AW(DirectPlayLobbyCreate) after the W and A declarations. That's the standard way in Wine of doing it. Vincent