Modified:
branches/guffert/test/odbctap.h
Log:
Fix calculation of length of wchar_t * for W() macro.
Modified: branches/guffert/test/odbctap.h
===================================================================
--- branches/guffert/test/odbctap.h 2007-08-29 17:01:00 UTC (rev 711)
+++ branches/guffert/test/odbctap.h 2007-08-29 20:13:23 UTC (rev 712)
@@ -953,7 +953,8 @@
/**
Helper for possibly converting a (wchar_t *) to a (SQLWCHAR *)
*/
-#define W(string) dup_wchar_t_as_sqlwchar((string), sizeof(string))
+#define W(string) dup_wchar_t_as_sqlwchar((string), \
+ sizeof(string) / sizeof(wchar_t))
#define WL(string, len) dup_wchar_t_as_sqlwchar((string), (len))
| Thread |
|---|
| • Connector/ODBC 3.51 commit: r712 - branches/guffert/test | jwinstead | 29 Aug |