summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bb7f9a1)
raw | patch | inline | side by side (parent: bb7f9a1)
author | ozmikepittman <ozmikepittman@users.sourceforge.net> | |
Fri, 28 Mar 2008 04:15:31 +0000 (04:15 +0000) | ||
committer | ozmikepittman <ozmikepittman@users.sourceforge.net> | |
Fri, 28 Mar 2008 04:15:31 +0000 (04:15 +0000) |
src/registrytool.cpp | patch | blob | history |
diff --git a/src/registrytool.cpp b/src/registrytool.cpp
index 69a2faaf9a169a69a04a590970c3fb521694808e..7f6ff8a9a3b51a23cb26c59ff4549a9df3d82313 100644 (file)
--- a/src/registrytool.cpp
+++ b/src/registrytool.cpp
0, NULL, REG_OPTION_NON_VOLATILE,
KEY_WRITE, NULL, &key, NULL))
{
- printf("RegistryTool: Could not create the registry key '%s'\n", keyName.c_str());
+ fprintf(stderr, "RegistryTool: Could not create the registry key '%s'\n", keyName.c_str());
return false;
}
if (RegSetValueEx(key, valueName.c_str(),
0, REG_SZ, (LPBYTE) value.c_str(), (DWORD) value.size()))
{
- printf("RegistryTool: Could not set the value '%s'\n", value.c_str());
+ fprintf(stderr, "RegistryTool: Could not set the value '%s'\n", value.c_str());
RegCloseKey(key);
return false;
}
char buf[MAX_PATH+1];
if (!GetModuleFileName(NULL, buf, MAX_PATH))
{
- printf("Could not fetch executable file name\n");
+ fprintf(stderr, "Could not fetch executable file name\n");
return false;
}
else