From bf15d5434cfa35aed7bb8335209f866eb299e22e Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Tue, 6 Jan 2015 11:36:57 +0200 Subject: [PATCH] Fix building with MSDTC=no. --- setup.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup.c b/setup.c index 9177393..fbb0550 100644 --- a/setup.c +++ b/setup.c @@ -442,6 +442,7 @@ void test_connection(HANDLE hwnd, ConnInfo *ci, BOOL withDTC) emsg = szMsg; if (withDTC) { +#ifdef _HANDLE_ENLIST_IN_DTC_ HRESULT res; void *pObj = NULL; @@ -466,6 +467,9 @@ void test_connection(HANDLE hwnd, ConnInfo *ci, BOOL withDTC) } else if (FAILED(res)) snprintf(szMsg, sizeof(szMsg), "%s\nDistibuted Transaction enlistment error %x", emsg, res); +#else /* _HANDLE_ENLIST_IN_DTC_ */ + snprintf(szMsg, sizeof(szMsg), "%s\nDistibuted Transaction enlistment not supported by this driver", emsg); +#endif } } else -- 2.39.5