diff options
author | Nicholas Corgan <nick.corgan@ettus.com> | 2015-07-24 07:27:24 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2015-07-24 10:38:15 -0700 |
commit | 290b85a9610eb416d21775b222e70b8772497b08 (patch) | |
tree | 404d62963e6f4733d597be4a76b716c57f79bb4b /host/lib/utils | |
parent | 76e980b41d912dd9c9eefd8d6f10146569fa25c9 (diff) | |
download | uhd-290b85a9610eb416d21775b222e70b8772497b08.tar.gz uhd-290b85a9610eb416d21775b222e70b8772497b08.tar.bz2 uhd-290b85a9610eb416d21775b222e70b8772497b08.zip |
Fixed minor warnings
Diffstat (limited to 'host/lib/utils')
-rw-r--r-- | host/lib/utils/paths.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/host/lib/utils/paths.cpp b/host/lib/utils/paths.cpp index a9c9965c8..ac4a010a7 100644 --- a/host/lib/utils/paths.cpp +++ b/host/lib/utils/paths.cpp @@ -1,5 +1,5 @@ // -// Copyright 2010-2012 Ettus Research LLC +// Copyright 2010-2012,2015 Ettus Research LLC // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -111,6 +111,7 @@ static std::vector<std::string> get_env_paths(const std::string &var_name){ return paths; } +#ifndef UHD_PLATFORM_WIN32 /*! Expand a tilde character to the $HOME path. * * The path passed to this function must start with the tilde character in order @@ -132,6 +133,7 @@ static std::string expand_home_directory(std::string path) { return path; } +#endif /*********************************************************************** * Implement the functions in paths.hpp @@ -239,7 +241,7 @@ std::string _get_images_path_from_registry(const std::string& registry_key_path) //Get a handle to the key location HKEY hkey_location; - if (RegOpenKeyExA(hkey_parent, reg_path.c_str(), NULL, KEY_QUERY_VALUE, &hkey_location) != ERROR_SUCCESS) + if (RegOpenKeyExA(hkey_parent, reg_path.c_str(), 0, KEY_QUERY_VALUE, &hkey_location) != ERROR_SUCCESS) return std::string(); //Query key value |