Change STATUS error codes to winerror ones
Modified: trunk/reactos/lib/kernel32/misc/comm.c
_____
Modified: trunk/reactos/lib/kernel32/misc/comm.c
--- trunk/reactos/lib/kernel32/misc/comm.c 2005-06-24 18:19:40 UTC
(rev 16258)
+++ trunk/reactos/lib/kernel32/misc/comm.c 2005-06-24 18:28:22 UTC
(rev 16259)
@@ -953,7 +953,7 @@
if( (NULL == lpdwSize)
|| (NULL == lpCC) ) {
DPRINT("GetCommConfig() - invalid parameter\n");
- SetLastError(STATUS_INVALID_PARAMETER);
+ SetLastError(ERROR_INVALID_PARAMETER);
ReturnValue = FALSE;
}
else
@@ -975,8 +975,8 @@
lpCC->dwProviderOffset =
(ULONG_PTR)&lpCC->wcProviderData[0] - (ULONG_PTR)lpCC;
}
if( (lpCC->dwProviderSize+lpCC->dwSize) >
*lpdwSize ) {
- DPRINT("GetCommConfig() -
STATUS_BUFFER_TOO_SMALL\n");
- SetLastError(STATUS_BUFFER_TOO_SMALL);
+ DPRINT("GetCommConfig() -
ERROR_INSUFFICIENT_BUFFER\n");
+ SetLastError(ERROR_INSUFFICIENT_BUFFER);
ReturnValue = FALSE;
} else {
RtlCopyMemory(lpCC->wcProviderData,
lpComPort->wcProvChar, lpCC->dwProviderSize);
@@ -1225,7 +1225,7 @@
if(NULL == lpCC)
{
DPRINT("SetCommConfig() - invalid parameter\n");
- SetLastError(STATUS_INVALID_PARAMETER);
+ SetLastError(ERROR_INVALID_PARAMETER);
ReturnValue = FALSE;
}
else