[PATCH] fltmgr.sys: Use wide-char string literals.
1 Oct
2020
1 Oct
'20
9:26 p.m.
Signed-off-by: Michael Stefaniuc <mstefani(a)winehq.org> --- dlls/fltmgr.sys/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/fltmgr.sys/main.c b/dlls/fltmgr.sys/main.c index a1b81e5a893..e1016a4989c 100644 --- a/dlls/fltmgr.sys/main.c +++ b/dlls/fltmgr.sys/main.c @@ -82,8 +82,7 @@ void WINAPI FltUnregisterFilter( PFLT_FILTER filter ) void* WINAPI FltGetRoutineAddress(LPCSTR name) { - static const WCHAR fltmgrW[] = {'f','l','t','m','g','r','.','s','y','s',0}; - HMODULE mod = GetModuleHandleW(fltmgrW); + HMODULE mod = GetModuleHandleW(L"fltmgr.sys"); void *func; func = GetProcAddress(mod, name); -- 2.26.2
1899
Age (days ago)
1899
Last active (days ago)
0 comments
1 participants
participants (1)
-
Michael Stefaniuc