mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
msvcrt: Clarify comparison of the diff of two unsigneds with 0 (PVS-Studio).
This commit is contained in:
parent
9dcb4004d9
commit
278b70bdd0
1 changed files with 1 additions and 1 deletions
|
@ -4254,7 +4254,7 @@ MSVCRT_size_t CDECL MSVCRT__fread_nolock_s(void *buf, MSVCRT_size_t buf_size, MS
|
|||
if(c == EOF)
|
||||
break;
|
||||
|
||||
if(!MSVCRT_CHECK_PMT_ERR(buf_size-buf_pos > 0, MSVCRT_ERANGE)) {
|
||||
if(!MSVCRT_CHECK_PMT_ERR(buf_size != buf_pos, MSVCRT_ERANGE)) {
|
||||
memset(buf, 0, buf_size);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue