diff --git a/src/xrCore/FS.cpp b/src/xrCore/FS.cpp index 92347177114..1898e12aaa4 100644 --- a/src/xrCore/FS.cpp +++ b/src/xrCore/FS.cpp @@ -106,7 +106,7 @@ bool file_handle_internal(LPCSTR file_name, u32& size, int& hFile) return (true); } #else // EDITOR -static errno_t open_internal(LPCSTR fn, int& handle) +static int open_internal(LPCSTR fn, int& handle) { return ( _sopen_s( diff --git a/src/xrCore/_std_extensions.h b/src/xrCore/_std_extensions.h index a8ef6b60f25..7eb30fc6abc 100644 --- a/src/xrCore/_std_extensions.h +++ b/src/xrCore/_std_extensions.h @@ -206,12 +206,12 @@ IC int xr_strcmp(const char* S1, const char* S2) #ifndef _EDITOR #ifndef MASTER_GOLD -inline errno_t xr_strcpy(LPSTR destination, size_t const destination_size, LPCSTR source) +inline int xr_strcpy(LPSTR destination, size_t const destination_size, LPCSTR source) { return strcpy_s(destination, destination_size, source); } -inline errno_t xr_strcat(LPSTR destination, size_t const buffer_size, LPCSTR source) +inline int xr_strcat(LPSTR destination, size_t const buffer_size, LPCSTR source) { return strcat_s(destination, buffer_size, source); } @@ -232,12 +232,12 @@ inline int __cdecl xr_sprintf(char(&destination)[count], LPCSTR format_string, . } #else // #ifndef MASTER_GOLD -inline errno_t xr_strcpy(LPSTR destination, size_t const destination_size, LPCSTR source) +inline int xr_strcpy(LPSTR destination, size_t const destination_size, LPCSTR source) { return strncpy_s(destination, destination_size, source, destination_size); } -inline errno_t xr_strcat(LPSTR destination, size_t const buffer_size, LPCSTR source) +inline int xr_strcat(LPSTR destination, size_t const buffer_size, LPCSTR source) { size_t const destination_length = xr_strlen(destination); LPSTR i = destination + destination_length; @@ -271,13 +271,13 @@ inline int __cdecl xr_sprintf(char(&destination)[count], LPCSTR format_string, . # pragma deprecated( strcpy, strcpy_s, sprintf, sprintf_s, strcat, strcat_s ) template -inline errno_t xr_strcpy(char(&destination)[count], LPCSTR source) +inline int xr_strcpy(char(&destination)[count], LPCSTR source) { return xr_strcpy(destination, count, source); } template -inline errno_t xr_strcat(char(&destination)[count], LPCSTR source) +inline int xr_strcat(char(&destination)[count], LPCSTR source) { return xr_strcat(destination, count, source); } diff --git a/src/xrCore/xrDebugNew.cpp b/src/xrCore/xrDebugNew.cpp index 8231b644ebf..b25e6c5d9e2 100644 --- a/src/xrCore/xrDebugNew.cpp +++ b/src/xrCore/xrDebugNew.cpp @@ -792,7 +792,7 @@ static void invalid_parameter_handler( string4096 function_; string4096 file_; size_t converted_chars = 0; - // errno_t err = + // int err = if (expression) wcstombs_s( &converted_chars,