File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,11 @@ LOGICAL DllMain(
91
91
{
92
92
{ IntegerSettingType , SETTING_NAME_AUTO_CHECK , L"1" },
93
93
{ StringSettingType , SETTING_NAME_LAST_CHECK , L"0" },
94
+ #ifdef VIRUSTOTAL_API
95
+ { IntegerSettingType , SETTING_NAME_NIGHTLY_BUILD , L"1" }
96
+ #else
94
97
{ IntegerSettingType , SETTING_NAME_NIGHTLY_BUILD , L"0" }
98
+ #endif
95
99
};
96
100
97
101
PluginInstance = PhRegisterPlugin (PLUGIN_NAME , Instance , & info );
Original file line number Diff line number Diff line change @@ -767,7 +767,7 @@ NTSTATUS UpdateDownloadThread(
767
767
goto CleanupExit ;
768
768
769
769
// Create the directory if it does not exist.
770
- if (fullSetupPath = PhGetFullPath (PhGetStringOrEmpty (context -> SetupFilePath ), & indexOfFileName ))
770
+ if (fullSetupPath = PhGetFullPath (PhGetString (context -> SetupFilePath ), & indexOfFileName ))
771
771
{
772
772
PPH_STRING directoryPath ;
773
773
@@ -784,7 +784,7 @@ NTSTATUS UpdateDownloadThread(
784
784
// Create output file
785
785
if (!NT_SUCCESS (PhCreateFileWin32 (
786
786
& tempFileHandle ,
787
- PhGetStringOrEmpty (context -> SetupFilePath ),
787
+ PhGetString (context -> SetupFilePath ),
788
788
FILE_GENERIC_READ | FILE_GENERIC_WRITE ,
789
789
FILE_ATTRIBUTE_NOT_CONTENT_INDEXED | FILE_ATTRIBUTE_TEMPORARY ,
790
790
FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE ,
You can’t perform that action at this time.
0 commit comments