diff options
| author | Heikki Linnakangas | 2015-01-06 09:36:57 +0000 |
|---|---|---|
| committer | Heikki Linnakangas | 2015-01-06 09:37:32 +0000 |
| commit | bf15d5434cfa35aed7bb8335209f866eb299e22e (patch) | |
| tree | c365861ed2dba6c08f89161ee0f52e3f73c60f56 /setup.c | |
| parent | f807c6488ea0e8beaaabbf58e206e793b841804b (diff) | |
Fix building with MSDTC=no.
Diffstat (limited to 'setup.c')
| -rw-r--r-- | setup.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |
