Commit 334c6ebaa5efdea03aee7671846d1e78d39be7fc

Authored by Perry Werneck
1 parent 9030be47
Exists in master and in 1 other branch develop

Testing load properties from registry.

Showing 1 changed file with 9 additions and 0 deletions   Show diff stats
src/testprogram/testprogram.c
@@ -142,7 +142,16 @@ @@ -142,7 +142,16 @@
142 142
143 // Load settings before connecting the signals. 143 // Load settings before connecting the signals.
144 #ifdef _WIN32 144 #ifdef _WIN32
  145 + {
  146 + HKEY hKey = 0;
145 147
  148 + if(!get_registry(&hKey,KEY_SET_VALUE))
  149 + {
  150 + v3270_load_registry(terminal,hKey,"terminal");
  151 + RegCloseKey(hKey);
  152 + }
  153 +
  154 + }
146 #else 155 #else
147 debug("%s: Loading settings...",__FUNCTION__); 156 debug("%s: Loading settings...",__FUNCTION__);
148 GKeyFile * key_file = get_key_file(); 157 GKeyFile * key_file = get_key_file();