From 7e517f16196cfc5bb891aa672c8c29342fbf6e39 Mon Sep 17 00:00:00 2001 From: Roman Arutyunyan Date: Thu, 13 Jun 2013 09:07:51 +0400 Subject: [PATCH] fixed MoveFileEx --- hls/ngx_rtmp_hls_module.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hls/ngx_rtmp_hls_module.c b/hls/ngx_rtmp_hls_module.c index cac8e92..d308068 100644 --- a/hls/ngx_rtmp_hls_module.c +++ b/hls/ngx_rtmp_hls_module.c @@ -428,7 +428,8 @@ retry: ngx_close_file(fd); #if (NGX_WIN32) - rc = MoveFileEx(ctx->playlist_bak.data, ctx->playlist.data, + rc = MoveFileEx((LPCTSTR) ctx->playlist_bak.data, + (LPCTSTR) ctx->playlist.data, MOVEFILE_REPLACE_EXISTING); #else rc = ngx_rename_file(ctx->playlist_bak.data, ctx->playlist.data);