[PATCH] wbemprox: Fix allocation size.

Hans Leidekker hans at codeweavers.com
Mon May 11 11:11:01 CDT 2020


Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49128
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
---
 dlls/wbemprox/builtin.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/wbemprox/builtin.c b/dlls/wbemprox/builtin.c
index 5d39984d4ce..5af47a0ddc4 100644
--- a/dlls/wbemprox/builtin.c
+++ b/dlls/wbemprox/builtin.c
@@ -3761,7 +3761,7 @@ static enum fill_status fill_systemenclosure( struct table *table, const struct
 
 static WCHAR *get_pnpdeviceid( DXGI_ADAPTER_DESC *desc )
 {
-    static const WCHAR *fmtW = L"PCI\\VEN_%04X&DEV_%04X&SUBSYS_%08X&REV_%02X\\0&DEADBEEF&0&DEAD";
+    static const WCHAR fmtW[] = L"PCI\\VEN_%04X&DEV_%04X&SUBSYS_%08X&REV_%02X\\0&DEADBEEF&0&DEAD";
     UINT len = sizeof(fmtW) + 2;
     WCHAR *ret;
 
-- 
2.20.1




More information about the wine-devel mailing list