Re: WineFile: [PATCH] Implement part of Save Settings to registry
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 http://www.microsoft.com/resources/documentation/windowsnt/4/workstation/res... ). Can we make the settings compatible? +static windowOptions load_registry_settings() +{ + windowOptions opts; + + return opts; +} BANG. 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
participants (1)
-
Detlef Riekenberg