Skip to content

Commit

Permalink
msvcrt: Don't forward wcscmp to ntdll.
Browse files Browse the repository at this point in the history
Signed-off-by: Piotr Caban <[email protected]>
Signed-off-by: Alexandre Julliard <[email protected]>
  • Loading branch information
PiotrCW authored and julliard committed Oct 17, 2018
1 parent 98eb717 commit 66b3868
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dlls/msvcr100/msvcr100.spec
Original file line number Diff line number Diff line change
Expand Up @@ -1857,7 +1857,7 @@
@ cdecl wcscat(wstr wstr) ntdll.wcscat
@ cdecl wcscat_s(wstr long wstr) MSVCRT_wcscat_s
@ cdecl wcschr(wstr long) MSVCRT_wcschr
@ cdecl wcscmp(wstr wstr) ntdll.wcscmp
@ cdecl wcscmp(wstr wstr) MSVCRT_wcscmp
@ cdecl wcscoll(wstr wstr) MSVCRT_wcscoll
@ cdecl wcscpy(ptr wstr) ntdll.wcscpy
@ cdecl wcscpy_s(ptr long wstr) MSVCRT_wcscpy_s
Expand Down
2 changes: 1 addition & 1 deletion dlls/msvcr110/msvcr110.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2215,7 +2215,7 @@
@ cdecl wcscat(wstr wstr) ntdll.wcscat
@ cdecl wcscat_s(wstr long wstr) MSVCRT_wcscat_s
@ cdecl wcschr(wstr long) MSVCRT_wcschr
@ cdecl wcscmp(wstr wstr) ntdll.wcscmp
@ cdecl wcscmp(wstr wstr) MSVCRT_wcscmp
@ cdecl wcscoll(wstr wstr) MSVCRT_wcscoll
@ cdecl wcscpy(ptr wstr) ntdll.wcscpy
@ cdecl wcscpy_s(ptr long wstr) MSVCRT_wcscpy_s
Expand Down
2 changes: 1 addition & 1 deletion dlls/msvcr120/msvcr120.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2450,7 +2450,7 @@
@ cdecl wcscat(wstr wstr) ntdll.wcscat
@ cdecl wcscat_s(wstr long wstr) MSVCRT_wcscat_s
@ cdecl wcschr(wstr long) MSVCRT_wcschr
@ cdecl wcscmp(wstr wstr) ntdll.wcscmp
@ cdecl wcscmp(wstr wstr) MSVCRT_wcscmp
@ cdecl wcscoll(wstr wstr) MSVCRT_wcscoll
@ cdecl wcscpy(ptr wstr) ntdll.wcscpy
@ cdecl wcscpy_s(ptr long wstr) MSVCRT_wcscpy_s
Expand Down
2 changes: 1 addition & 1 deletion dlls/msvcr70/msvcr70.spec
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@
@ cdecl vwprintf(wstr ptr) MSVCRT_vwprintf
@ cdecl wcscat(wstr wstr) ntdll.wcscat
@ cdecl wcschr(wstr long) MSVCRT_wcschr
@ cdecl wcscmp(wstr wstr) ntdll.wcscmp
@ cdecl wcscmp(wstr wstr) MSVCRT_wcscmp
@ cdecl wcscoll(wstr wstr) MSVCRT_wcscoll
@ cdecl wcscpy(ptr wstr) ntdll.wcscpy
@ cdecl wcscspn(wstr wstr) ntdll.wcscspn
Expand Down
2 changes: 1 addition & 1 deletion dlls/msvcr71/msvcr71.spec
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@
@ cdecl vwprintf(wstr ptr) MSVCRT_vwprintf
@ cdecl wcscat(wstr wstr) ntdll.wcscat
@ cdecl wcschr(wstr long) MSVCRT_wcschr
@ cdecl wcscmp(wstr wstr) ntdll.wcscmp
@ cdecl wcscmp(wstr wstr) MSVCRT_wcscmp
@ cdecl wcscoll(wstr wstr) MSVCRT_wcscoll
@ cdecl wcscpy(ptr wstr) ntdll.wcscpy
@ cdecl wcscspn(wstr wstr) ntdll.wcscspn
Expand Down
2 changes: 1 addition & 1 deletion dlls/msvcr80/msvcr80.spec
Original file line number Diff line number Diff line change
Expand Up @@ -1537,7 +1537,7 @@
@ cdecl wcscat(wstr wstr) ntdll.wcscat
@ cdecl wcscat_s(wstr long wstr) MSVCRT_wcscat_s
@ cdecl wcschr(wstr long) MSVCRT_wcschr
@ cdecl wcscmp(wstr wstr) ntdll.wcscmp
@ cdecl wcscmp(wstr wstr) MSVCRT_wcscmp
@ cdecl wcscoll(wstr wstr) MSVCRT_wcscoll
@ cdecl wcscpy(ptr wstr) ntdll.wcscpy
@ cdecl wcscpy_s(ptr long wstr) MSVCRT_wcscpy_s
Expand Down
2 changes: 1 addition & 1 deletion dlls/msvcr90/msvcr90.spec
Original file line number Diff line number Diff line change
Expand Up @@ -1510,7 +1510,7 @@
@ cdecl wcscat(wstr wstr) ntdll.wcscat
@ cdecl wcscat_s(wstr long wstr) MSVCRT_wcscat_s
@ cdecl wcschr(wstr long) MSVCRT_wcschr
@ cdecl wcscmp(wstr wstr) ntdll.wcscmp
@ cdecl wcscmp(wstr wstr) MSVCRT_wcscmp
@ cdecl wcscoll(wstr wstr) MSVCRT_wcscoll
@ cdecl wcscpy(ptr wstr) ntdll.wcscpy
@ cdecl wcscpy_s(ptr long wstr) MSVCRT_wcscpy_s
Expand Down
2 changes: 1 addition & 1 deletion dlls/msvcrt/msvcrt.spec
Original file line number Diff line number Diff line change
Expand Up @@ -1483,7 +1483,7 @@
@ cdecl wcscat(wstr wstr) ntdll.wcscat
@ cdecl wcscat_s(wstr long wstr) MSVCRT_wcscat_s
@ cdecl wcschr(wstr long) MSVCRT_wcschr
@ cdecl wcscmp(wstr wstr) ntdll.wcscmp
@ cdecl wcscmp(wstr wstr) MSVCRT_wcscmp
@ cdecl wcscoll(wstr wstr) MSVCRT_wcscoll
@ cdecl wcscpy(ptr wstr) ntdll.wcscpy
@ cdecl wcscpy_s(ptr long wstr) MSVCRT_wcscpy_s
Expand Down
8 changes: 8 additions & 0 deletions dlls/msvcrt/wcs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2555,3 +2555,11 @@ MSVCRT_size_t CDECL MSVCRT_wcsxfrm(MSVCRT_wchar_t *dest,
{
return MSVCRT__wcsxfrm_l(dest, src, len, NULL);
}

/*********************************************************************
* wcscmp (MSVCRT.@)
*/
int CDECL MSVCRT_wcscmp(const MSVCRT_wchar_t *str1, const MSVCRT_wchar_t *str2)
{
return strcmpW(str1, str2);
}
2 changes: 1 addition & 1 deletion dlls/ucrtbase/ucrtbase.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2557,7 +2557,7 @@
@ cdecl wcscat(wstr wstr) ntdll.wcscat
@ cdecl wcscat_s(wstr long wstr) MSVCRT_wcscat_s
@ cdecl wcschr(wstr long) MSVCRT_wcschr
@ cdecl wcscmp(wstr wstr) ntdll.wcscmp
@ cdecl wcscmp(wstr wstr) MSVCRT_wcscmp
@ cdecl wcscoll(wstr wstr) MSVCRT_wcscoll
@ cdecl wcscpy(ptr wstr) ntdll.wcscpy
@ cdecl wcscpy_s(ptr long wstr) MSVCRT_wcscpy_s
Expand Down

0 comments on commit 66b3868

Please sign in to comment.