updates from orpheus for windoze build
[feisty_meow.git] / nucleus / library / application / registry_config.cpp
index 0fcbb01b3272bd2ec028368af3fe3f96f75879ab..aed6dd8cd883cd87507d233345eb3b3e65c4ffd7 100644 (file)
@@ -12,6 +12,7 @@
 
 #include "registry_config.h"
 
+#include <application/windoze_helper.h>
 #include <basis/astring.h>
 #include <basis/functions.h>
 #include <basis/utf_conversion.h>
@@ -114,8 +115,8 @@ bool registry_configurator::put(const astring &section_in, const astring &entry,
     LOG("failed to open the key, trying to create it.");
     DWORD dispose;  // the disposition of the call (created or existing).
     ret = RegCreateKeyEx((HKEY)translate_hive(_hive),
-        to_unicode_temp(section), 0, NIL, REG_OPTION_NON_VOLATILE,
-        KEY_ALL_ACCESS, NIL, &key, &dispose);
+        to_unicode_temp(section), 0, NULL_POINTER, REG_OPTION_NON_VOLATILE,
+        KEY_ALL_ACCESS, NULL_POINTER, &key, &dispose);
     if (ret != ERROR_SUCCESS) {
       LOG("failed to create the key!!");
       return false;