@@ -139,7 +139,7 @@ int fb_SerialOpen( FB_FILE *handle,
139139 if ( res == FB_RTERROR_OK ) {
140140 COMMPROP prop ;
141141 if ( !GetCommProperties ( hDevice , & prop ) ) {
142- res = fb_ErrorSetNum ( FB_RTERROR_NOPRIVILEDGES );
142+ res = fb_ErrorSetNum ( FB_RTERROR_NOPRIVILEGES );
143143 } else {
144144 if ( prop .dwCurrentTxQueue ) {
145145 dwDefaultTxBufferSize = prop .dwCurrentTxQueue ;
@@ -173,7 +173,7 @@ int fb_SerialOpen( FB_FILE *handle,
173173 if ( res == FB_RTERROR_OK ) {
174174 COMMTIMEOUTS timeouts ;
175175 if ( !GetCommTimeouts ( hDevice , & timeouts ) ) {
176- res = fb_ErrorSetNum ( FB_RTERROR_NOPRIVILEDGES );
176+ res = fb_ErrorSetNum ( FB_RTERROR_NOPRIVILEGES );
177177 } else {
178178 if ( options -> DurationCTS != 0 ) {
179179 timeouts .ReadIntervalTimeout = options -> DurationCTS ;
@@ -190,7 +190,7 @@ int fb_SerialOpen( FB_FILE *handle,
190190 if ( res == FB_RTERROR_OK ) {
191191 DCB dcb ;
192192 if ( !GetCommState ( hDevice , & dcb ) ) {
193- res = fb_ErrorSetNum ( FB_RTERROR_NOPRIVILEDGES );
193+ res = fb_ErrorSetNum ( FB_RTERROR_NOPRIVILEGES );
194194 } else {
195195 dcb .BaudRate = options -> uiSpeed ;
196196 dcb .fBinary = !options -> AddLF ; /* FIXME: Windows only supports binary mode */
0 commit comments