Changeset 225 in xtideuniversalbios for trunk/Serial_Server/win32/Win32Serial.h
- Timestamp:
- Jan 27, 2012, 6:19:21 PM (13 years ago)
- google:author:
- gregli@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Serial_Server/win32/Win32Serial.h
r219 r225 40 40 41 41 pipe = CreateNamedPipeA( PIPENAME, PIPE_ACCESS_DUPLEX, PIPE_TYPE_BYTE|PIPE_REJECT_REMOTE_CLIENTS, 2, 1024, 1024, 0, NULL ); 42 if( !pipe)42 if( pipe == INVALID_HANDLE_VALUE ) 43 43 log( -1, "Could not CreateNamedPipe " PIPENAME ); 44 44 … … 62 62 63 63 pipe = CreateFileA( name, GENERIC_READ|GENERIC_WRITE, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0 ); 64 if( !pipe)64 if( pipe == INVALID_HANDLE_VALUE ) 65 65 log( -1, "Could not Open \"%s\"", name ); 66 66
Note:
See TracChangeset
for help on using the changeset viewer.