mirror of
https://github.com/reactos/reactos.git
synced 2025-07-08 17:57:52 +00:00
[USER32]
- In RealSystemParametersInfoA/SPI_GETDESKWALLPAPER, write the ansi wallpaper path directly into the user's buffer instead of using an allocation (and overrunning it). Fixes crash when running user32_winetest:sysparams with DPH. Tangential to CORE-13097 svn path=/trunk/; revision=74370
This commit is contained in:
parent
fc00a030f4
commit
202ae322fb
1 changed files with 2 additions and 4 deletions
|
@ -306,10 +306,8 @@ RealSystemParametersInfoA(UINT uiAction,
|
||||||
|
|
||||||
Ret = NtUserSystemParametersInfo(SPI_GETDESKWALLPAPER, MAX_PATH, awc, fWinIni);
|
Ret = NtUserSystemParametersInfo(SPI_GETDESKWALLPAPER, MAX_PATH, awc, fWinIni);
|
||||||
RtlInitUnicodeString(&ustrWallpaper, awc);
|
RtlInitUnicodeString(&ustrWallpaper, awc);
|
||||||
RtlUnicodeStringToAnsiString(&astrWallpaper, &ustrWallpaper, TRUE);
|
RtlInitEmptyAnsiString(&astrWallpaper, pvParam, uiParam);
|
||||||
|
RtlUnicodeStringToAnsiString(&astrWallpaper, &ustrWallpaper, FALSE);
|
||||||
RtlCopyMemory(pvParam, astrWallpaper.Buffer, uiParam);
|
|
||||||
RtlFreeAnsiString(&astrWallpaper);
|
|
||||||
return Ret;
|
return Ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue