win32: change exception type in case SetCommState fails, fix for #49
diff --git a/serial/serialwin32.py b/serial/serialwin32.py
index fadc2f0..eb6af41 100644
--- a/serial/serialwin32.py
+++ b/serial/serialwin32.py
@@ -217,7 +217,7 @@
         comDCB.XoffChar = serial.XOFF
 
         if not win32.SetCommState(self._port_handle, ctypes.byref(comDCB)):
-            raise ValueError("Cannot configure port, some setting was wrong. Original message: %r" % ctypes.WinError())
+            raise SerialException("Cannot configure port, something went wrong. Original message: %r" % ctypes.WinError())
 
     #~ def __del__(self):
         #~ self.close()