diff options
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/gl_w32.c | 4 | ||||
-rw-r--r-- | video/out/w32_common.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/video/out/gl_w32.c b/video/out/gl_w32.c index 87f98f117e..68df3397c1 100644 --- a/video/out/gl_w32.c +++ b/video/out/gl_w32.c @@ -84,7 +84,7 @@ static void *w32gpa(const GLubyte *procName) void *res = wglGetProcAddress(procName); if (res) return res; - oglmod = GetModuleHandle(L"opengl32.dll"); + oglmod = GetModuleHandleW(u"opengl32.dll"); return GetProcAddress(oglmod, procName); } @@ -208,7 +208,7 @@ static void create_ctx(void *ptr) if (!w32_ctx->context) create_context_w32_old(ctx); - w32_ctx->dwmapi_dll = LoadLibrary(L"Dwmapi.dll"); + w32_ctx->dwmapi_dll = LoadLibraryW(u"Dwmapi.dll"); if (w32_ctx->dwmapi_dll) w32_ctx->dwmflush = (DwmFlush_t)GetProcAddress(w32_ctx->dwmapi_dll, "DwmFlush"); diff --git a/video/out/w32_common.c b/video/out/w32_common.c index e9b01d5401..02e7064b59 100644 --- a/video/out/w32_common.c +++ b/video/out/w32_common.c @@ -42,7 +42,7 @@ #include "misc/rendezvous.h" #include "talloc.h" -static const WCHAR classname[] = L"mpv"; +static const WCHAR classname[] = u"mpv"; static __thread struct vo_w32_state *w32_thread_context; @@ -1129,7 +1129,7 @@ static void *gui_thread(void *ptr) .style = CS_HREDRAW | CS_VREDRAW, .lpfnWndProc = WndProc, .hInstance = hInstance, - .hIcon = LoadIconW(hInstance, L"IDI_ICON1"), + .hIcon = LoadIconW(hInstance, u"IDI_ICON1"), .hCursor = LoadCursor(NULL, IDC_ARROW), .lpszClassName = classname, }; |