Modified:
trunk/SDK/Installer/Library/installer.c
Log:
fixed bug
Modified: trunk/SDK/Installer/Library/installer.c
===================================================================
--- trunk/SDK/Installer/Library/installer.c 2007-06-01 14:10:34 UTC (rev 950)
+++ trunk/SDK/Installer/Library/installer.c 2007-06-01 17:02:18 UTC (rev 951)
@@ -232,11 +232,12 @@
attrslen -= x; attrs += x + 1;
if(*driver->setup_lib)
{
- swprintf(attrs, attrslen, L"Setup=%ws", driver->setup_lib);
+ x = swprintf(attrs, attrslen, L"Setup=%ws", driver->setup_lib);
attrslen -= x; attrs += x + 1;
}
- *attrs = 0;
- return 0;
+ if(attrslen--)
+ *attrs = 0;
+ return !(attrslen > 0);
}
/* ODBC Installer Data Source Wrapper */
| Thread |
|---|
| • Connector/ODBC 5 commit: r951 - trunk/SDK/Installer/Library | jbalint | 1 Jun |