[winpr] use winpr_fopen
This commit is contained in:
parent
2d16ab5255
commit
8b9b2db44b
4
libfreerdp/cache/persistent.c
vendored
4
libfreerdp/cache/persistent.c
vendored
@ -251,7 +251,7 @@ static int persistent_cache_open_read(rdpPersistentCache* persistent)
|
||||
long offset;
|
||||
|
||||
WINPR_ASSERT(persistent);
|
||||
persistent->fp = fopen(persistent->filename, "rb");
|
||||
persistent->fp = winpr_fopen(persistent->filename, "rb");
|
||||
|
||||
if (!persistent->fp)
|
||||
return -1;
|
||||
@ -291,7 +291,7 @@ static int persistent_cache_open_write(rdpPersistentCache* persistent)
|
||||
{
|
||||
WINPR_ASSERT(persistent);
|
||||
|
||||
persistent->fp = fopen(persistent->filename, "w+b");
|
||||
persistent->fp = winpr_fopen(persistent->filename, "w+b");
|
||||
|
||||
if (!persistent->fp)
|
||||
return -1;
|
||||
|
@ -683,7 +683,7 @@ static void SSLCTX_keylog_cb(const SSL* ssl, const char* line)
|
||||
dfile = SSL_get_ex_data(ssl, secrets_file_idx);
|
||||
if (dfile)
|
||||
{
|
||||
FILE* f = fopen(dfile, "a+");
|
||||
FILE* f = winpr_fopen(dfile, "a+");
|
||||
fwrite(line, strlen(line), 1, f);
|
||||
fwrite("\n", 1, 1, f);
|
||||
fclose(f);
|
||||
|
Loading…
Reference in New Issue
Block a user