diff options
-rw-r--r-- | plugins/PluginUpdater/pu_stub/pu_stub.cpp | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/plugins/PluginUpdater/pu_stub/pu_stub.cpp b/plugins/PluginUpdater/pu_stub/pu_stub.cpp index 73a1f4146c..ef9d7f0352 100644 --- a/plugins/PluginUpdater/pu_stub/pu_stub.cpp +++ b/plugins/PluginUpdater/pu_stub/pu_stub.cpp @@ -16,15 +16,17 @@ HINSTANCE hInst; // current instance void log(const TCHAR *tszFormat, ...)
{
- FILE *out = fopen("c:\\temp\\pu.log", "a");
- if (out) {
- va_list params;
- va_start(params, &tszFormat);
- _vftprintf(out, tszFormat, params);
- va_end(params);
- fputc('\n', out);
- fclose(out);
- }
+ #if defined(_DEBUG)
+ FILE *out = fopen("c:\\temp\\pu.log", "a");
+ if (out) {
+ va_list params;
+ va_start(params, tszFormat);
+ _vftprintf(out, tszFormat, params);
+ va_end(params);
+ fputc('\n', out);
+ fclose(out);
+ }
+ #endif
}
int CreateDirectoryTreeW(const WCHAR* szDir)
|