WineFile: [PATCH] Implement part of Save Settings to registry

Detlef Riekenberg at
Wed Feb 22 15:00:30 CST 2006

Am Montag, den 20.02.2006, 12:57 -0500 schrieb Jason Green:

> > This patch adds the ability to save your window position to the
> > registry when using winefile. 

> +static const WCHAR registry_key[] =
{ 'S','o','f','t','w','a','r','e','\\',
>+   'W','i','n','e','\\','W','i','n','e','F','i','l','e','\0'};

Native winfile uses winfile.ini on win9x and this is mapped to the
registry in WinNT.
(IniFileMapping does not work in wine yet ).

Can we make the settings compatible?

+static windowOptions load_registry_settings()
+       windowOptions opts;
+       return opts;

You used a struct on the stack.
That Memory is not valid after the return.

Use a pointer to the your struct as Parameter: ...(windowOptions * opts)

By By ...
      ... Detlef

More information about the wine-devel mailing list