2008-03-28  Carlos O'Donell  <carlos@codesourcery.com>

	* ser-mingw.c (ser_windows_open): Open requested name.
This commit is contained in:
Carlos O'Donell
2008-03-28 17:30:45 +00:00
parent ca9334856c
commit df3ac60635
2 changed files with 4 additions and 7 deletions

View File

@@ -51,13 +51,6 @@ ser_windows_open (struct serial *scb, const char *name)
struct ser_windows_state *state;
COMMTIMEOUTS timeouts;
/* Only allow COM ports. */
if (strncmp (name, "COM", 3) != 0)
{
errno = ENOENT;
return -1;
}
h = CreateFile (name, GENERIC_READ | GENERIC_WRITE, 0, NULL,
OPEN_EXISTING, FILE_FLAG_OVERLAPPED, NULL);
if (h == INVALID_HANDLE_VALUE)