[dplobby.h] Define DirectPlayLobbyCreate with respect unicode

Peter Berg Larsen pebl at math.ku.dk
Fri Dec 17 10:20:54 CST 2004


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 );





More information about the wine-patches mailing list