diff options
author | Arnon Gilboa <agilboa@redhat.com> | 2009-12-23 15:17:33 +0200 |
---|---|---|
committer | Yaniv Kamay <ykamay@redhat.com> | 2009-12-23 15:31:01 +0200 |
commit | f915fa4a72c17e39f750a9154d1a7b4f4eea634e (patch) | |
tree | b8cc2a17096324914a73b23e0c21be56e779d962 /common | |
parent | 6b670dfe5cc4bfb92e35ba7a09ec0eff4ec028e5 (diff) |
vdagent: add win7 support to service for launching agent
Diffstat (limited to 'common')
-rw-r--r-- | common/vdlog.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/vdlog.cpp b/common/vdlog.cpp index 19f7a7c..1001de3 100644 --- a/common/vdlog.cpp +++ b/common/vdlog.cpp @@ -84,6 +84,7 @@ void log_version() DWORD handle; TCHAR module_fname[MAX_PATH]; TCHAR* info_buf = NULL; + try { if (!GetModuleFileName(NULL, module_fname, MAX_PATH)) { throw; @@ -110,5 +111,5 @@ void log_version() } catch (...) { vd_printf("get version info failed"); } - delete[] info_buf; + delete[] info_buf; } |