Don't try to set fields in nonexistant lpLineCountryList.
Supply valid tapi codes.
diff --git a/include/tapi.h b/include/tapi.h
index 05cc790..d7cd448 100644
--- a/include/tapi.h
+++ b/include/tapi.h
@@ -19,15 +19,14 @@
typedef HANDLE HPHONE, *LPHPHONE;
typedef HANDLE HPHONEAPP, *LPHPHONEAPP;
-/* FIXME: bogus codes !! */
-#define TAPIERR_REQUESTFAILED 20
-#define LINEERR_INCOMPATIBLEAPIVERSION 1
-#define LINEERR_NOMEM 1
-#define LINEERR_INIFILECORRUPT 1
-#define LINEERR_OPERATIONFAILED 1
-#define LINEERR_INVALCOUNTRYCODE 1
-#define LINEERR_STRUCTURETOOSMALL 1
-#define LINEERR_INVALPOINTER 1
+#define TAPIERR_REQUESTFAILED -16L
+#define LINEERR_INCOMPATIBLEAPIVERSION 0x8000000C
+#define LINEERR_NOMEM 0x80000044
+#define LINEERR_INIFILECORRUPT 0x8000000E
+#define LINEERR_OPERATIONFAILED 0x80000048
+#define LINEERR_INVALCOUNTRYCODE 0x80000022
+#define LINEERR_STRUCTURETOOSMALL 0x8000004D
+#define LINEERR_INVALPOINTER 0x80000035
typedef struct lineaddresscaps_tag {
DWORD dwTotalSize;