[Spice-devel] [RFC PATCH vdagent 01/16] Fix 'Run-Time Check Failure #2' when running a 64bit guest
Christophe Fergeau
cfergeau at redhat.com
Wed Jul 20 15:45:14 UTC 2016
This log could include a bit more about the failure (ie how it happens).
I'd guess with very long filenames?
Christophe
On Mon, Jul 18, 2016 at 09:34:35AM +0300, Dmitry Fleytman wrote:
> From: Sandy Stutsman <sstutsma at redhat.com>
>
> ---
> vdagent/display_setting.cpp | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/vdagent/display_setting.cpp b/vdagent/display_setting.cpp
> index 1ec7397..f5eb0d7 100644
> --- a/vdagent/display_setting.cpp
> +++ b/vdagent/display_setting.cpp
> @@ -306,7 +306,7 @@ bool DisplaySetting::reload_wallpaper(HKEY desktop_reg_key)
> wallpaper_path[value_size] = '\0';
> }
>
> - if (SystemParametersInfo(SPI_GETDESKWALLPAPER, sizeof(cur_wallpaper), cur_wallpaper, 0)) {
> + if (SystemParametersInfo(SPI_GETDESKWALLPAPER, MAX_PATH, cur_wallpaper, 0)) {
> if (_tcscmp(cur_wallpaper, TEXT("")) != 0) {
> vd_printf("wallpaper wasn't disabled");
> return true;
> --
> 1.8.3.1
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20160720/103961db/attachment.sig>
More information about the Spice-devel
mailing list