Skip to content

Instantly share code, notes, and snippets.

@ripxorip
Created March 30, 2023 17:41
Show Gist options
  • Save ripxorip/b8ec337319bfda0e930d887839351fce to your computer and use it in GitHub Desktop.
Save ripxorip/b8ec337319bfda0e930d887839351fce to your computer and use it in GitHub Desktop.
Ripxorip Wine Patches
diff --git a/dlls/comctl32/button.c b/dlls/comctl32/button.c
index 77eb54fbcf1..f1b633499f9 100644
--- a/dlls/comctl32/button.c
+++ b/dlls/comctl32/button.c
@@ -584,7 +584,8 @@ static LRESULT CALLBACK BUTTON_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, L
theme = GetWindowTheme( hWnd );
hdc = wParam ? (HDC)wParam : BeginPaint( hWnd, &ps );
- if (is_themed_paint_supported(theme, btn_type))
+ /* This is where the bug is for the buttons! */
+ if (is_themed_paint_supported(theme, btn_type) && 0)
{
int drawState = get_draw_state(infoPtr);
UINT dtflags = BUTTON_BStoDT(style, GetWindowLongW(hWnd, GWL_EXSTYLE));
diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c
index db04babb899..886c5d3ba6f 100644
--- a/dlls/msi/msi.c
+++ b/dlls/msi/msi.c
@@ -2556,6 +2556,7 @@ HRESULT WINAPI MsiGetFileSignatureInformationW( const WCHAR *path, DWORD flags,
data.pwszURLReference = NULL;
data.dwProvFlags = 0;
data.dwUIContext = WTD_UICONTEXT_INSTALL;
+ data.pSignatureSettings = NULL;
hr = WinVerifyTrustEx( INVALID_HANDLE_VALUE, &generic_verify_v2, &data );
*cert = NULL;
if (FAILED(hr)) goto done;
diff --git a/dlls/win32u/window.c b/dlls/win32u/window.c
index a3ff0647dcd..38ce81afd24 100644
--- a/dlls/win32u/window.c
+++ b/dlls/win32u/window.c
@@ -3489,6 +3489,10 @@ done:
BOOL WINAPI NtUserSetWindowPos( HWND hwnd, HWND after, INT x, INT y, INT cx, INT cy, UINT flags )
{
WINDOWPOS winpos;
+ if (!flags) {
+ ERR("Blocking %p; (after: %p) flags:%d, cx:%d cy:%d, (%dx%d)\n", hwnd, after, flags, cx, cy, x, y);
+ return FALSE;
+ }
TRACE( "hwnd %p, after %p, %d,%d (%dx%d), flags %08x\n", hwnd, after, x, y, cx, cy, flags );
if(TRACE_ON(win)) dump_winpos_flags(flags);
diff --git a/libs/xml2/xmlsave.c b/libs/xml2/xmlsave.c
index 9b42c66cac9..faeea7e633a 100644
--- a/libs/xml2/xmlsave.c
+++ b/libs/xml2/xmlsave.c
@@ -776,10 +776,12 @@ xmlAttrDumpOutput(xmlSaveCtxtPtr ctxt, xmlAttrPtr cur) {
xmlOutputBufferWriteString(buf, (const char *)cur->ns->prefix);
xmlOutputBufferWrite(buf, 1, ":");
}
- xmlOutputBufferWriteString(buf, (const char *)cur->name);
- xmlOutputBufferWrite(buf, 2, "=\"");
- xmlAttrSerializeContent(buf, cur);
- xmlOutputBufferWrite(buf, 1, "\"");
+ if ((*cur->name) != 0) {
+ xmlOutputBufferWriteString(buf, (const char *)cur->name);
+ xmlOutputBufferWrite(buf, 2, "=\"");
+ xmlAttrSerializeContent(buf, cur);
+ xmlOutputBufferWrite(buf, 1, "\"");
+ }
}
#ifdef LIBXML_HTML_ENABLED
@ripxorip
Copy link
Author

As applied to commit: d059dd1cd07 of the upstream Wine project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment