mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
Change STATUS error codes to winerror ones
svn path=/trunk/; revision=16259
This commit is contained in:
parent
a434b1aa6d
commit
5444c47450
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue