wine
17 years agomshtml: Fixed invalid use of -1 length in WideCharToMultiByte calls.
Jacek Caban [Wed, 26 Mar 2008 14:32:46 +0000 (15:32 +0100)] 
mshtml: Fixed invalid use of -1 length in WideCharToMultiByte calls.

17 years agomshtml: Fixed crash in tests if Gecko is not available.
Jacek Caban [Wed, 26 Mar 2008 14:24:50 +0000 (15:24 +0100)] 
mshtml: Fixed crash in tests if Gecko is not available.

17 years agomshtml: Added nsIChannel::SetContentType implementation.
Jacek Caban [Wed, 26 Mar 2008 14:24:38 +0000 (15:24 +0100)] 
mshtml: Added nsIChannel::SetContentType implementation.

17 years agomshtml: Pass buffer length to MultiByteToWideChar instead of -1.
Jacek Caban [Wed, 26 Mar 2008 14:24:20 +0000 (15:24 +0100)] 
mshtml: Pass buffer length to MultiByteToWideChar instead of -1.

17 years agomshtml: Rename nsChannel::content to content_type and clean up its handling.
Jacek Caban [Wed, 26 Mar 2008 14:24:03 +0000 (15:24 +0100)] 
mshtml: Rename nsChannel::content to content_type and clean up its handling.

17 years agomshtml: Added IHTMLDocument2::get_location implementation.
Jacek Caban [Wed, 26 Mar 2008 14:23:41 +0000 (15:23 +0100)] 
mshtml: Added IHTMLDocument2::get_location implementation.

17 years agoquartz: Avoid %ll printf formats.
Alexandre Julliard [Wed, 26 Mar 2008 17:01:09 +0000 (18:01 +0100)] 
quartz: Avoid %ll printf formats.

17 years agoqmgr: Avoid %ll printf formats.
Alexandre Julliard [Wed, 26 Mar 2008 17:00:37 +0000 (18:00 +0100)] 
qmgr: Avoid %ll printf formats.

17 years agontdll: Clear the process stack again after dll init and before calling the main entry...
Alexandre Julliard [Wed, 26 Mar 2008 16:08:57 +0000 (17:08 +0100)] 
ntdll: Clear the process stack again after dll init and before calling the main entry point.

17 years agokernel32: Moved the allocation of the process stack to ntdll.
Alexandre Julliard [Wed, 26 Mar 2008 16:08:38 +0000 (17:08 +0100)] 
kernel32: Moved the allocation of the process stack to ntdll.

17 years agolibwine: Added a wine_call_on_stack function.
Alexandre Julliard [Wed, 26 Mar 2008 14:38:00 +0000 (15:38 +0100)] 
libwine: Added a wine_call_on_stack function.

17 years agoserver: impersonation_level should be an int since we store -1 in it.
Alexandre Julliard [Wed, 26 Mar 2008 13:38:49 +0000 (14:38 +0100)] 
server: impersonation_level should be an int since we store -1 in it.

Make sure we don't check the impersonation level for primary tokens.

17 years agoadvapi32: Partly implemented QueryServiceConfig2A/W.
Stefan Leichter [Fri, 21 Mar 2008 08:49:57 +0000 (09:49 +0100)] 
advapi32: Partly implemented QueryServiceConfig2A/W.

17 years agosetupapi: Forward SetupInstallServicesFromInfSectionA to W-function.
Paul Vriens [Wed, 26 Mar 2008 12:17:31 +0000 (13:17 +0100)] 
setupapi: Forward SetupInstallServicesFromInfSectionA to W-function.

17 years agowininet: Implement chunked reads.
Hans Leidekker [Wed, 26 Mar 2008 10:31:21 +0000 (11:31 +0100)] 
wininet: Implement chunked reads.

17 years agoimm: Implement ImmGetIMEFileNameW and ImmGetIMEFileNameA.
Aric Stewart [Tue, 25 Mar 2008 12:07:11 +0000 (07:07 -0500)] 
imm: Implement ImmGetIMEFileNameW and ImmGetIMEFileNameA.

17 years agowinex11: Fix X11DRV_CLIPBOARD_ReadProperty to read data in larger chunks and to prope...
Alexandre Julliard [Wed, 26 Mar 2008 11:14:41 +0000 (12:14 +0100)] 
winex11: Fix X11DRV_CLIPBOARD_ReadProperty to read data in larger chunks and to properly null-terminate the buffer.

17 years agouser32: Tweak how the edit control handles WM_GETDLGCODE.
Lei Zhang [Wed, 26 Mar 2008 02:09:38 +0000 (19:09 -0700)] 
user32: Tweak how the edit control handles WM_GETDLGCODE.

17 years agofonts: Where possible use references to Latin glyphs in Latin-Extended glyphs.
Aurimas Fischer [Tue, 25 Mar 2008 11:12:28 +0000 (13:12 +0200)] 
fonts: Where possible use references to Latin glyphs in Latin-Extended glyphs.

17 years agocomctl32: Add HotTrackingColor into COMCTL32_SysColor structure.
Anatoly Lyutin [Tue, 25 Mar 2008 16:15:59 +0000 (19:15 +0300)] 
comctl32: Add HotTrackingColor into COMCTL32_SysColor structure.

17 years agomsxml3: Correct SAXXMLReader_create.
Alistair Leslie-Hughes [Wed, 26 Mar 2008 03:40:01 +0000 (14:40 +1100)] 
msxml3: Correct SAXXMLReader_create.

17 years agod3d9: Make the visual test pass on GeForce Go 7600.
Dmitry Timoshkov [Wed, 26 Mar 2008 07:15:41 +0000 (15:15 +0800)] 
d3d9: Make the visual test pass on GeForce Go 7600.

17 years agokernel32: Make the test compatible with win9x.
Dmitry Timoshkov [Wed, 26 Mar 2008 04:25:25 +0000 (12:25 +0800)] 
kernel32: Make the test compatible with win9x.

17 years agocomdlg32: Small typo fix in the German translation.
Michael Stefaniuc [Tue, 25 Mar 2008 23:18:20 +0000 (00:18 +0100)] 
comdlg32: Small typo fix in the German translation.

17 years agocomdlg32: Add the Romanian translation.
Michael Stefaniuc [Tue, 25 Mar 2008 23:18:07 +0000 (00:18 +0100)] 
comdlg32: Add the Romanian translation.

17 years agoshell32: Update the German Translation.
Michael Stefaniuc [Tue, 25 Mar 2008 23:16:59 +0000 (00:16 +0100)] 
shell32: Update the German Translation.

17 years agomshtml: Update the German translation.
Michael Stefaniuc [Tue, 25 Mar 2008 23:15:27 +0000 (00:15 +0100)] 
mshtml: Update the German translation.

17 years agowinecoreaudio.drv: Assign to structs instead of using memcpy.
Andrew Talbot [Tue, 25 Mar 2008 22:22:16 +0000 (22:22 +0000)] 
winecoreaudio.drv: Assign to structs instead of using memcpy.

17 years agowineaudioio.drv: Assign to structs instead of using memcpy.
Andrew Talbot [Tue, 25 Mar 2008 22:22:10 +0000 (22:22 +0000)] 
wineaudioio.drv: Assign to structs instead of using memcpy.

17 years agomsxml3: Fix compiles for systems without libxml2.
Lei Zhang [Tue, 25 Mar 2008 20:59:46 +0000 (13:59 -0700)] 
msxml3: Fix compiles for systems without libxml2.

17 years agocrypt32: Allow one update to a decode message after the final update if it's a detach...
Juan Lang [Tue, 25 Mar 2008 18:44:54 +0000 (11:44 -0700)] 
crypt32: Allow one update to a decode message after the final update if it's a detached message.

17 years agocrypt32: Keep track of state in each message type's update function rather than in...
Juan Lang [Tue, 25 Mar 2008 18:15:08 +0000 (11:15 -0700)] 
crypt32: Keep track of state in each message type's update function rather than in CryptMsgUpdate.

17 years agocrypt32: Test updates after the final update to a detached message.
Juan Lang [Tue, 25 Mar 2008 18:01:12 +0000 (11:01 -0700)] 
crypt32: Test updates after the final update to a detached message.

17 years agocomdlg32: Avoid double free in PRINTDLG_PaperSizeA/W.
Lei Zhang [Tue, 25 Mar 2008 18:38:07 +0000 (11:38 -0700)] 
comdlg32: Avoid double free in PRINTDLG_PaperSizeA/W.

17 years agoadvapi32: Create MachineGuid value if it doesn't exist.
Juan Lang [Tue, 25 Mar 2008 17:39:22 +0000 (10:39 -0700)] 
advapi32: Create MachineGuid value if it doesn't exist.

17 years agoadvapi32: Test the MachineGuid value.
Juan Lang [Tue, 25 Mar 2008 17:38:30 +0000 (10:38 -0700)] 
advapi32: Test the MachineGuid value.

17 years agogdi32: Spelling fixes.
Austin English [Tue, 25 Mar 2008 17:35:45 +0000 (12:35 -0500)] 
gdi32: Spelling fixes.

17 years agowined3d: Enable D3DFMT_V8U8 with GL_ATI_fragment_shader.
Stefan Dösinger [Sat, 22 Mar 2008 16:02:09 +0000 (17:02 +0100)] 
wined3d: Enable D3DFMT_V8U8 with GL_ATI_fragment_shader.

17 years agowined3d: Implement env bump mapping in the atifs ffp replacement.
Stefan Dösinger [Thu, 20 Mar 2008 17:38:47 +0000 (18:38 +0100)] 
wined3d: Implement env bump mapping in the atifs ffp replacement.

17 years agowined3d: Fragment processing using GL_ATI_fragment_shader.
Stefan Dösinger [Sat, 22 Mar 2008 13:31:52 +0000 (14:31 +0100)] 
wined3d: Fragment processing using GL_ATI_fragment_shader.

This adds code for handling fixed function fragment processing with the
GL_ATI_fragment_shader extension. This is a sort-of programmable
interface for fragment processing at the level of shader model 1.4 in
d3d. This code is of use on r200, r250 and r280 cards(radeon 8500 to
9200) which do not support GL_ARB_fragment_program, but support pixel
shader 1.4 on Windows. This code is somewhat a counterpart to the
existing fragment processing code using GL_NV_register_combiners and
GL_NV_texture_shader.

17 years agowined3d: Add a shader DLL init callback.
Stefan Dösinger [Sat, 22 Mar 2008 13:29:50 +0000 (14:29 +0100)] 
wined3d: Add a shader DLL init callback.

17 years agowined3d: Add GL_ATI_fragment_shader.
Stefan Dösinger [Tue, 18 Mar 2008 18:57:52 +0000 (19:57 +0100)] 
wined3d: Add GL_ATI_fragment_shader.

17 years agowined3d: Alloc / free shader private data and blt stuff in Init3D/Uninit3D.
Stefan Dösinger [Tue, 18 Mar 2008 18:49:05 +0000 (19:49 +0100)] 
wined3d: Alloc / free shader private data and blt stuff in Init3D/Uninit3D.

17 years agowined3d: Free shader private data on reset.
Stefan Dösinger [Tue, 18 Mar 2008 18:31:24 +0000 (19:31 +0100)] 
wined3d: Free shader private data on reset.

Since the shader backend implementations might track opengl resources in
their private data inform them about reset calls. For example, the atifs
backend keeps track of the replacement shaders, which are lost during an
opengl context recreation.

17 years agod3d9: Add a projected texture test.
Stefan Dösinger [Wed, 5 Mar 2008 22:17:01 +0000 (23:17 +0100)] 
d3d9: Add a projected texture test.

17 years agowined3d: Move shader caps setting into the arb and glsl shader backends.
Stefan Dösinger [Sat, 22 Mar 2008 13:27:53 +0000 (14:27 +0100)] 
wined3d: Move shader caps setting into the arb and glsl shader backends.

17 years agowined3d: Set shader specific caps in the shader backend.
Stefan Dösinger [Tue, 18 Mar 2008 18:39:26 +0000 (19:39 +0100)] 
wined3d: Set shader specific caps in the shader backend.

The whole control structures in directx.c get terribly confusing with
the various codepaths for texturing and different shader
implementations. It is also hard to reflect the shader model
decisions this way too. This patch moves the shader specific parts of
the caps code into the shader backend where we can set our caps
dependent of the shader model decisions and without complex caps flag
checks.

17 years agod3d: De-pointerize the WINED3DCAPS structure.
Stefan Dösinger [Tue, 18 Mar 2008 18:26:00 +0000 (19:26 +0100)] 
d3d: De-pointerize the WINED3DCAPS structure.

17 years agowined3d: Move the shader backend selection into a separate function.
Stefan Dösinger [Tue, 18 Mar 2008 18:37:53 +0000 (19:37 +0100)] 
wined3d: Move the shader backend selection into a separate function.

17 years agowined3d: Move shader generation into the shader backend.
Stefan Dösinger [Tue, 18 Mar 2008 18:19:16 +0000 (19:19 +0100)] 
wined3d: Move shader generation into the shader backend.

Generating the shader ID and parts of the shader prolog and epilog was
done by the common vertexshader.c / pixelshader.c, which is ugly.

This patch doesn't get rid of all the uglyness, somewhen we'll still
have to sort out the relationship of [arb|glsl]_generate_shader and
[arb|glsl]_generate_declarations.

17 years agowined3d: Make the state table a property of the shader backend.
Stefan Dösinger [Sun, 9 Mar 2008 18:30:08 +0000 (19:30 +0100)] 
wined3d: Make the state table a property of the shader backend.

17 years agocomdlg32: Fixed a number of buffer overflows in the file dialog.
Alexandre Julliard [Tue, 25 Mar 2008 16:34:32 +0000 (17:34 +0100)] 
comdlg32: Fixed a number of buffer overflows in the file dialog.

17 years agomscms: Fix compilation without lcms.
Huw Davies [Tue, 25 Mar 2008 12:47:14 +0000 (12:47 +0000)] 
mscms: Fix compilation without lcms.

17 years agoregedit: Display a larger icon in the About box.
Alexandre Julliard [Tue, 25 Mar 2008 15:14:35 +0000 (16:14 +0100)] 
regedit: Display a larger icon in the About box.

17 years agoregedit: A nicer icon.
Herve Chanal [Tue, 25 Mar 2008 14:14:28 +0000 (15:14 +0100)] 
regedit: A nicer icon.

17 years agomsxml3: Fixed include of SAX.h.
Marcus Meissner [Tue, 25 Mar 2008 14:42:22 +0000 (15:42 +0100)] 
msxml3: Fixed include of SAX.h.

17 years agowined3d: Always report D16 as Windows drivers report it on all cards (likely using...
Roderick Colenbrander [Tue, 25 Mar 2008 10:02:20 +0000 (11:02 +0100)] 
wined3d: Always report D16 as Windows drivers report it on all cards (likely using emulation).

17 years agowine.inf: Create fake dll entry for dosx.exe.
Justin Chevrier [Tue, 25 Mar 2008 04:14:47 +0000 (00:14 -0400)] 
wine.inf: Create fake dll entry for dosx.exe.

17 years agomscoree: Implement a number of interop helpers.
Alexandre Julliard [Tue, 25 Mar 2008 14:21:18 +0000 (15:21 +0100)] 
mscoree: Implement a number of interop helpers.

17 years agoddraw: Don't clear the return value anymore, we fill the fields anyway, also a test...
Kolbjørn Fredheim [Sun, 23 Mar 2008 16:17:21 +0000 (17:17 +0100)] 
ddraw: Don't clear the return value anymore, we fill the fields anyway, also a test for the behaviour.

17 years agomscms: Rewrite handle management to be thread-safe. Allocate handles dynamically.
Hans Leidekker [Mon, 24 Mar 2008 20:33:06 +0000 (21:33 +0100)] 
mscms: Rewrite handle management to be thread-safe. Allocate handles dynamically.

17 years agowinex11: Don't attempt to dock into the system tray in desktop mode.
Alexandre Julliard [Tue, 25 Mar 2008 11:13:28 +0000 (12:13 +0100)] 
winex11: Don't attempt to dock into the system tray in desktop mode.

17 years agofusion: Implement CreateAssemblyCache.
James Hawkins [Tue, 25 Mar 2008 05:04:57 +0000 (00:04 -0500)] 
fusion: Implement CreateAssemblyCache.

17 years agofusion: Add a stub implementation of IAssemblyEnum.
James Hawkins [Tue, 25 Mar 2008 05:03:15 +0000 (00:03 -0500)] 
fusion: Add a stub implementation of IAssemblyEnum.

17 years agofusion: Add a stub implementation of IAssemblyCache.
James Hawkins [Tue, 25 Mar 2008 05:01:53 +0000 (00:01 -0500)] 
fusion: Add a stub implementation of IAssemblyCache.

17 years agowined3d: Don't store primary surface palette in device palettes.
Alexander Dorofeyev [Tue, 25 Mar 2008 00:04:02 +0000 (02:04 +0200)] 
wined3d: Don't store primary surface palette in device palettes.

17 years agowined3d: Don't use device palettes in RealizePalette.
Alexander Dorofeyev [Tue, 25 Mar 2008 00:03:59 +0000 (02:03 +0200)] 
wined3d: Don't use device palettes in RealizePalette.

17 years agowined3d: Don't use device palettes in GetDC.
Alexander Dorofeyev [Tue, 25 Mar 2008 00:03:55 +0000 (02:03 +0200)] 
wined3d: Don't use device palettes in GetDC.

17 years agowined3d: Don't use device palettes in read_from_framebuffer.
Alexander Dorofeyev [Tue, 25 Mar 2008 00:03:38 +0000 (02:03 +0200)] 
wined3d: Don't use device palettes in read_from_framebuffer.

17 years agoddraw/tests: Add test for ddraw 8-bit mode.
Alexander Dorofeyev [Tue, 25 Mar 2008 00:03:50 +0000 (02:03 +0200)] 
ddraw/tests: Add test for ddraw 8-bit mode.

Adds rudimentary test for 8 bit mode ddraw (palettized primary surface). Tests
things like GetDC and its palette handling and SetPalette affected by patches
that follow.

17 years agowined3d: Fix comment.
Alexander Dorofeyev [Tue, 25 Mar 2008 00:03:33 +0000 (02:03 +0200)] 
wined3d: Fix comment.

17 years agomsxml3: Added support for SAXXMLReader.
Alistair Leslie-Hughes [Tue, 25 Mar 2008 03:19:10 +0000 (14:19 +1100)] 
msxml3: Added support for SAXXMLReader.

17 years agomsxml3: Added typelib ids for SAX interfaces.
Alistair Leslie-Hughes [Tue, 25 Mar 2008 02:53:30 +0000 (13:53 +1100)] 
msxml3: Added typelib ids for SAX interfaces.

17 years agowinex11.drv: Don't add owned windows to the taskbar.
Dmitry Timoshkov [Tue, 25 Mar 2008 08:52:41 +0000 (16:52 +0800)] 
winex11.drv: Don't add owned windows to the taskbar.

17 years agoddraw: DDRAW_dump_flags_nolf must not add LF.
Christian Costa [Mon, 24 Mar 2008 22:14:45 +0000 (23:14 +0100)] 
ddraw: DDRAW_dump_flags_nolf must not add LF.

17 years agowinealsa.drv: Assign to structs instead of using memcpy.
Andrew Talbot [Mon, 24 Mar 2008 21:37:37 +0000 (21:37 +0000)] 
winealsa.drv: Assign to structs instead of using memcpy.

17 years agomsi: Fix a typo.
James Hawkins [Mon, 24 Mar 2008 21:16:58 +0000 (16:16 -0500)] 
msi: Fix a typo.

17 years agogdiplus: Remove break after return (Smatch).
Michael Stefaniuc [Mon, 24 Mar 2008 20:55:35 +0000 (21:55 +0100)] 
gdiplus: Remove break after return (Smatch).

17 years agomshtml: Added script engine loading test.
Jacek Caban [Tue, 25 Mar 2008 01:11:25 +0000 (02:11 +0100)] 
mshtml: Added script engine loading test.

17 years agomshtml: Added script engine loading implementation.
Jacek Caban [Tue, 25 Mar 2008 01:10:47 +0000 (02:10 +0100)] 
mshtml: Added script engine loading implementation.

17 years agojscript: Added tests.
Jacek Caban [Mon, 24 Mar 2008 20:53:14 +0000 (21:53 +0100)] 
jscript: Added tests.

17 years agojscript: Added DllCanUnloadNow implementation.
Jacek Caban [Mon, 24 Mar 2008 20:53:34 +0000 (21:53 +0100)] 
jscript: Added DllCanUnloadNow implementation.

17 years agowininet: Avoid a crash with traces on.
Hans Leidekker [Mon, 24 Mar 2008 20:32:36 +0000 (21:32 +0100)] 
wininet: Avoid a crash with traces on.

17 years agowininet: Correct spec file entry for InternetCanonicalizeUrl{A, W}.
Hans Leidekker [Mon, 24 Mar 2008 20:32:16 +0000 (21:32 +0100)] 
wininet: Correct spec file entry for InternetCanonicalizeUrl{A, W}.

17 years agowininet: Don't strip Accept-Encoding headers from version 1.1 requests.
Hans Leidekker [Mon, 24 Mar 2008 20:31:53 +0000 (21:31 +0100)] 
wininet: Don't strip Accept-Encoding headers from version 1.1 requests.

17 years agoshlwapi: Added SHCreateStreamOnFileEx tests.
Reece Dunn [Mon, 24 Mar 2008 10:11:28 +0000 (10:11 +0000)] 
shlwapi: Added SHCreateStreamOnFileEx tests.

17 years agoshlwapi: Added SHCreateStreamOnFileW tests.
Reece Dunn [Mon, 24 Mar 2008 10:09:55 +0000 (10:09 +0000)] 
shlwapi: Added SHCreateStreamOnFileW tests.

17 years agoshlwapi: Added SHCreateStreamOnFileA tests.
Reece Dunn [Mon, 24 Mar 2008 10:07:13 +0000 (10:07 +0000)] 
shlwapi: Added SHCreateStreamOnFileA tests.

17 years agod3dx9: Start implementation of d3dx9_37.
Tony Wasserka [Mon, 24 Mar 2008 11:32:54 +0000 (12:32 +0100)] 
d3dx9: Start implementation of d3dx9_37.

17 years agosetupapi/tests: Use FIELD_OFFSET instead of offsetof.
Alexandre Julliard [Mon, 24 Mar 2008 20:06:15 +0000 (21:06 +0100)] 
setupapi/tests: Use FIELD_OFFSET instead of offsetof.

17 years agofonts: Added/updated all (9x2) Lithuanian glyphs.
Aurimas Fischer [Mon, 24 Mar 2008 14:50:06 +0000 (16:50 +0200)] 
fonts: Added/updated all (9x2) Lithuanian glyphs.

17 years agontdsapi: Fix building the tests with MSVC headers.
Reece Dunn [Sun, 23 Mar 2008 10:24:23 +0000 (10:24 +0000)] 
ntdsapi: Fix building the tests with MSVC headers.

17 years agoole32: Added a missing include needed for CLSID_ShellDesktop using MSVC headers.
Reece Dunn [Sun, 23 Mar 2008 10:04:04 +0000 (10:04 +0000)] 
ole32: Added a missing include needed for CLSID_ShellDesktop using MSVC headers.

17 years agoquartz: Fixed building with MSVC headers.
Reece Dunn [Sun, 23 Mar 2008 09:32:43 +0000 (09:32 +0000)] 
quartz: Fixed building with MSVC headers.

17 years agotools: Target the version defines to Vista in msvcmaker.
Reece Dunn [Sun, 23 Mar 2008 00:39:11 +0000 (00:39 +0000)] 
tools: Target the version defines to Vista in msvcmaker.

17 years agocomdlg32: Fix building the tests with MSVC headers.
Reece Dunn [Sat, 22 Mar 2008 22:50:43 +0000 (22:50 +0000)] 
comdlg32: Fix building the tests with MSVC headers.

17 years agomsxml3: Add SAX interfaces.
Alistair Leslie-Hughes [Mon, 24 Mar 2008 09:10:05 +0000 (20:10 +1100)] 
msxml3: Add SAX interfaces.

17 years agomsxml3: Add support for SAX Documents.
Alistair Leslie-Hughes [Mon, 24 Mar 2008 09:09:08 +0000 (20:09 +1100)] 
msxml3: Add support for SAX Documents.

17 years agonetapi32: Revert "janitorial: Use poll() instead of select()."
Kai Blin [Mon, 24 Mar 2008 16:05:47 +0000 (17:05 +0100)] 
netapi32: Revert "janitorial: Use poll() instead of select()."

As Juan Lang pointed out, fd is a SOCKET here and the netapi32 call to
select calls ws2_32.WS_select(), which uses poll internally already.

17 years agoinetcomm: Assign to structs instead of using memcpy.
Andrew Talbot [Mon, 24 Mar 2008 15:45:37 +0000 (15:45 +0000)] 
inetcomm: Assign to structs instead of using memcpy.