Merge branch 'master' of github.com:FreeRDP/FreeRDP-1.0

This commit is contained in:
Marc-André Moreau 2011-07-25 16:54:24 -04:00
commit 371f7ed874
2 changed files with 6 additions and 1 deletions

View File

@ -17,7 +17,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
cmake_minimum_required(VERSION 2.8)
cmake_minimum_required(VERSION 2.6)
project(FreeRDP C)
set(CMAKE_COLOR_MAKEFILE ON)

View File

@ -86,6 +86,11 @@ void registry_print(rdpRegistry* registry, FILE* fp)
void registry_create(rdpRegistry* registry)
{
registry->fp = fopen(registry->file, "w+");
if (registry->fp == NULL)
{
printf("registry_create: error opening [%s] for writing\n", registry->file);
return;
}
registry_print(registry, registry->fp);
fflush(registry->fp);
}