Module: wine
Branch: master
Commit: 899f010232c1ace8d6963d85b673803aaa6da520
URL: https://gitlab.winehq.org/wine/wine/-/commit/899f010232c1ace8d6963d85b67380…
Author: Zebediah Figura <zfigura(a)codeweavers.com>
Date: Fri Jan 20 14:16:59 2023 -0600
wineandroid: Retrieve the pixel format from win32u for normal windows in wglGetPixelFormat().
---
dlls/wineandroid.drv/opengl.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/dlls/wineandroid.drv/opengl.c b/dlls/wineandroid.drv/opengl.c
index 41df3d3c09c..37e9c713fb1 100644
--- a/dlls/wineandroid.drv/opengl.c
+++ b/dlls/wineandroid.drv/opengl.c
@@ -497,8 +497,14 @@ static int android_wglGetPixelFormat( HDC hdc )
{
struct gl_drawable *gl;
int ret = 0;
+ HWND hwnd;
+
+ if ((hwnd = NtUserWindowFromDC( hdc )))
+ return win32u_get_window_pixel_format( hwnd );
- if ((gl = get_gl_drawable( NtUserWindowFromDC( hdc ), hdc )))
+ /* This code is currently dead, but will be necessary if WGL_ARB_pbuffer
+ * support is introduced. */
+ if ((gl = get_gl_drawable( NULL, hdc )))
{
ret = gl->format;
/* offscreen formats can't be used with traditional WGL calls */
Module: wine
Branch: master
Commit: 13afaa7c16a1acea62935ea634f5278d15d12464
URL: https://gitlab.winehq.org/wine/wine/-/commit/13afaa7c16a1acea62935ea634f527…
Author: Eric Pouech <eric.pouech(a)gmail.com>
Date: Tue Feb 21 17:35:00 2023 +0100
dbghelp/tests: Use msinfo32.exe instead of notepad.exe.
Under Windows 11, notepad.exe has been migrated into the UWP framework,
and can no longer be launched as a 32bit process:
- even if c:\windows\syswow64\notepad.exe is still a 32 bit PE file
- the process created from c:\windows\syswow64\notepad.exe is not a
wow64 process.
So use msinfo32.exe instead. Like notepad.exe, it's a gui application,
present on Wine and all test-bot:ed windows platforms. But unlike
notepad.exe, it's not an UWP app on Windows 11.
(May not fully fix all the bugs below, but will get rid of a bunch
of errors).
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54535
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54536
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54537
Signed-off-by: Eric Pouech <eric.pouech(a)gmail.com>
---
dlls/dbghelp/tests/dbghelp.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/dbghelp/tests/dbghelp.c b/dlls/dbghelp/tests/dbghelp.c
index 339585993e0..276faf0101a 100644
--- a/dlls/dbghelp/tests/dbghelp.c
+++ b/dlls/dbghelp/tests/dbghelp.c
@@ -381,7 +381,7 @@ static BOOL test_modules(void)
ok(ret, "SymInitialize failed: %lu\n", GetLastError());
GetSystemWow64DirectoryA(file_wow64, MAX_PATH);
- strcat(file_wow64, "\\notepad.exe");
+ strcat(file_wow64, "\\msinfo32.exe");
/* not always present */
machine_wow = get_module_machine(file_wow64);
@@ -397,7 +397,7 @@ static BOOL test_modules(void)
}
GetSystemDirectoryA(file_system, MAX_PATH);
- strcat(file_system, "\\notepad.exe");
+ strcat(file_system, "\\msinfo32.exe");
base = SymLoadModule(GetCurrentProcess(), NULL, file_system, NULL, base1, 0);
ok(base == base1, "SymLoadModule failed: %lu\n", GetLastError());
@@ -676,7 +676,7 @@ static void test_loaded_modules(void)
ret = GetSystemDirectoryA(buffer, sizeof(buffer));
ok(ret, "got error %lu\n", GetLastError());
- strcat(buffer, "\\notepad.exe");
+ strcat(buffer, "\\msinfo32.exe");
/* testing with child process of different machines */
ret = CreateProcessA(NULL, buffer, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi);
@@ -744,7 +744,7 @@ static void test_loaded_modules(void)
{
ret = GetSystemWow64DirectoryA(buffer, sizeof(buffer));
ok(ret, "got error %lu\n", GetLastError());
- strcat(buffer, "\\notepad.exe");
+ strcat(buffer, "\\msinfo32.exe");
SymSetOptions(SymGetOptions() & ~SYMOPT_INCLUDE_32BIT_MODULES);