Change STATUS error codes to winerror ones

svn path=/trunk/; revision=16259
This commit is contained in:
Hervé Poussineau 2005-06-24 18:28:22 +00:00
parent a434b1aa6d
commit 5444c47450

View file

@ -953,7 +953,7 @@ GetCommConfig(HANDLE hCommDev, LPCOMMCONFIG lpCC, LPDWORD lpdwSize)
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 @@ GetCommConfig(HANDLE hCommDev, LPCOMMCONFIG lpCC, LPDWORD lpdwSize)
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 @@ SetCommConfig(HANDLE hCommDev, LPCOMMCONFIG lpCC, DWORD dwSize)
if(NULL == lpCC)
{
DPRINT("SetCommConfig() - invalid parameter\n");
SetLastError(STATUS_INVALID_PARAMETER);
SetLastError(ERROR_INVALID_PARAMETER);
ReturnValue = FALSE;
}
else