[vlc-commits] [Git][videolan/vlc][master] doc: win32: use proper strings in case the Windows tests are built with UNICODE

Steve Lhomme (@robUx4) gitlab at videolan.org
Thu May 15 09:34:18 UTC 2025



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
6dda4c24 by Steve Lhomme at 2025-05-15T09:12:41+00:00
doc: win32: use proper strings in case the Windows tests are built with UNICODE

- - - - -


3 changed files:

- doc/libvlc/d3d11_player.cpp
- doc/libvlc/d3d9_player.c
- doc/libvlc/win_player.c


Changes:

=====================================
doc/libvlc/d3d11_player.cpp
=====================================
@@ -716,7 +716,7 @@ int WINAPI WinMain(HINSTANCE hInstance,
     wc.lpfnWndProc = WindowProc;
     wc.hInstance = hInstance;
     wc.hCursor = LoadCursor(NULL, IDC_ARROW);
-    wc.lpszClassName = "WindowClass";
+    wc.lpszClassName = TEXT("WindowClass");
 
     RegisterClassEx(&wc);
 
@@ -727,8 +727,8 @@ int WINAPI WinMain(HINSTANCE hInstance,
     Context.client_area.height = wr.bottom - wr.top;
 
     Context.hWnd = CreateWindowEx(0,
-                          "WindowClass",
-                          "libvlc Demo app",
+                          TEXT("WindowClass"),
+                          TEXT("libvlc Demo app"),
                           WS_OVERLAPPEDWINDOW,
                           CW_USEDEFAULT, CW_USEDEFAULT,
                           Context.client_area.width,


=====================================
doc/libvlc/d3d9_player.c
=====================================
@@ -392,7 +392,7 @@ int WINAPI WinMain(HINSTANCE hInstance,
     wc.hInstance = hInstance;
     wc.hCursor = LoadCursor(NULL, IDC_ARROW);
     wc.hbrBackground = (HBRUSH)COLOR_WINDOW;
-    wc.lpszClassName = "WindowClass";
+    wc.lpszClassName = TEXT("WindowClass");
 
     RegisterClassEx(&wc);
 
@@ -400,8 +400,8 @@ int WINAPI WinMain(HINSTANCE hInstance,
     AdjustWindowRect(&wr, WS_OVERLAPPEDWINDOW, FALSE);
 
     hWnd = CreateWindowEx(0,
-                          "WindowClass",
-                          "libvlc Demo app",
+                          TEXT("WindowClass"),
+                          TEXT("libvlc Demo app"),
                           WS_OVERLAPPEDWINDOW,
                           CW_USEDEFAULT, CW_USEDEFAULT,
                           wr.right - wr.left,


=====================================
doc/libvlc/win_player.c
=====================================
@@ -127,7 +127,7 @@ int WINAPI WinMain(HINSTANCE hInstance,
     wc.lpfnWndProc = WindowProc;
     wc.hInstance = hInstance;
     wc.hCursor = LoadCursor(NULL, IDC_ARROW);
-    wc.lpszClassName = "WindowClass";
+    wc.lpszClassName = TEXT("WindowClass");
 
     RegisterClassEx(&wc);
 
@@ -135,8 +135,8 @@ int WINAPI WinMain(HINSTANCE hInstance,
     AdjustWindowRect(&wr, WS_OVERLAPPEDWINDOW, FALSE);
 
     hWnd = CreateWindowEx(0,
-                          "WindowClass",
-                          "libvlc Demo app",
+                          TEXT("WindowClass"),
+                          TEXT("libvlc Demo app"),
                           WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN,
                           CW_USEDEFAULT, CW_USEDEFAULT,
                           wr.right - wr.left,



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/6dda4c2425772ea6dee5e7d9bc2d02db1791e547

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/6dda4c2425772ea6dee5e7d9bc2d02db1791e547
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list