Missed a few.

This commit is contained in:
waltje
2018-04-01 23:47:45 -04:00
parent 8ef54202f9
commit 428747a5a5
2 changed files with 3 additions and 1 deletions

View File

@@ -337,7 +337,7 @@ pc_version(const char *platform)
void void
pc_path(wchar_t *dst, int sz, wchar_t *src) pc_path(wchar_t *dst, int sz, wchar_t *src)
{ {
if ((src != NULL) && !wcsnicmp(src, usr_path, wcslen(usr_path))) if ((src != NULL) && !wcscasecmp(src, usr_path))
src += wcslen(usr_path); src += wcslen(usr_path);
/* /*

View File

@@ -857,8 +857,10 @@ x54x_buf_dma_transfer(Req_t *req, int Is24bit, int TransferLength, int dir)
sg_pos += SGBuffer.Segment; sg_pos += SGBuffer.Segment;
BufLen -= SGBuffer.Segment; BufLen -= SGBuffer.Segment;
#if BUFLEN_IS_UNSIGNED
if (BufLen < 0) if (BufLen < 0)
BufLen = 0; BufLen = 0;
#endif
x54x_log("After S/G segment done: %i, %i\n", sg_pos, BufLen); x54x_log("After S/G segment done: %i, %i\n", sg_pos, BufLen);
} }