Commit 334c6ebaa5efdea03aee7671846d1e78d39be7fc
1 parent
9030be47
Exists in
master
and in
1 other branch
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 | 142 | |
| 143 | 143 | // Load settings before connecting the signals. |
| 144 | 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 | 155 | #else |
| 147 | 156 | debug("%s: Loading settings...",__FUNCTION__); |
| 148 | 157 | GKeyFile * key_file = get_key_file(); | ... | ... |