mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 05:53:05 +00:00
Rehack the explorer hack for secure CRT usage.
This should fix the build, unless there are any more oddities in our tree. svn path=/trunk/; revision=44929
This commit is contained in:
parent
b19ad21200
commit
e46aff6e85
3 changed files with 3 additions and 3 deletions
|
@ -158,7 +158,7 @@ String Context::getStackTrace() const
|
||||||
|
|
||||||
BOOL time_to_filetime(const time_t* t, FILETIME* ftime)
|
BOOL time_to_filetime(const time_t* t, FILETIME* ftime)
|
||||||
{
|
{
|
||||||
#ifdef __STDC_WANT_SECURE_LIB__
|
#if defined(__STDC_WANT_SECURE_LIB__) && defined(_MS_VER)
|
||||||
SYSTEMTIME stime;
|
SYSTEMTIME stime;
|
||||||
struct tm tm_;
|
struct tm tm_;
|
||||||
struct tm* tm = &tm_;
|
struct tm* tm = &tm_;
|
||||||
|
|
|
@ -183,7 +183,7 @@ BOOL exists_path(LPCTSTR path);
|
||||||
|
|
||||||
|
|
||||||
// secure CRT functions
|
// secure CRT functions
|
||||||
#ifdef __STDC_WANT_SECURE_LIB__ // for VS 2005: _MSC_VER>=1400
|
#if defined(__STDC_WANT_SECURE_LIB__) && defined(_MS_VER) // for VS 2005: _MSC_VER>=1400
|
||||||
|
|
||||||
#define _stprintf_s1 _stprintf_s
|
#define _stprintf_s1 _stprintf_s
|
||||||
#define _stprintf_s2 _stprintf_s
|
#define _stprintf_s2 _stprintf_s
|
||||||
|
|
|
@ -512,7 +512,7 @@ struct FileHolder
|
||||||
{
|
{
|
||||||
FileHolder(LPCTSTR path, LPCTSTR mode)
|
FileHolder(LPCTSTR path, LPCTSTR mode)
|
||||||
{
|
{
|
||||||
#ifdef __STDC_WANT_SECURE_LIB__ // secure CRT functions using VS 2005
|
#if defined(__STDC_WANT_SECURE_LIB__) && defined(_MS_VER) // secure CRT functions using VS 2005
|
||||||
if (_tfopen_s(&_pfile, path, mode) != 0)
|
if (_tfopen_s(&_pfile, path, mode) != 0)
|
||||||
_pfile = NULL;
|
_pfile = NULL;
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue