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);