Alexandre Julliard : qmgr: Use strncmpiW instead of memicmpW for strings without embedded nulls.
Module: wine Branch: master Commit: 0ab48967bd110114a50cae5fb9d024bfa8d92ee7 URL: https://source.winehq.org/git/wine.git/?a=commit;h=0ab48967bd110114a50cae5fb... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed May 8 08:34:48 2019 -0500 qmgr: Use strncmpiW instead of memicmpW for strings without embedded nulls. Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/qmgr/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/qmgr/file.c b/dlls/qmgr/file.c index dbdfc97..e717dc8 100644 --- a/dlls/qmgr/file.c +++ b/dlls/qmgr/file.c @@ -459,7 +459,7 @@ static BOOL transfer_file_local(BackgroundCopyFileImpl *file, const WCHAR *tmpna transitionJobState(job, BG_JOB_STATE_QUEUED, BG_JOB_STATE_TRANSFERRING); - if (strlenW(file->info.RemoteName) > 7 && !memicmpW(file->info.RemoteName, fileW, 7)) + if (strlenW(file->info.RemoteName) > 7 && !strncmpiW(file->info.RemoteName, fileW, 7)) ptr = file->info.RemoteName + 7; else ptr = file->info.RemoteName;
participants (1)
-
Alexandre Julliard