diff options
author | FusixGit <nikita0204@mail.ru> | 2014-12-04 22:59:52 +0300 |
---|---|---|
committer | FusixGit <nikita0204@mail.ru> | 2014-12-04 22:59:52 +0300 |
commit | 9033bd91f171349a1c12d513ce724c9d112bda24 (patch) | |
tree | 66828ecf8d083b833c8d0870830bd6de4fcafb3a /src-x86-x64-Fusix | |
parent | 8b85f4360567fbd7a7098b08e1ec966ba40e9166 (diff) |
Update RDPWrap.cpp
Diffstat (limited to 'src-x86-x64-Fusix')
-rw-r--r-- | src-x86-x64-Fusix/RDPWrap.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src-x86-x64-Fusix/RDPWrap.cpp b/src-x86-x64-Fusix/RDPWrap.cpp index a1ff822..3dece5c 100644 --- a/src-x86-x64-Fusix/RDPWrap.cpp +++ b/src-x86-x64-Fusix/RDPWrap.cpp @@ -239,11 +239,14 @@ BOOL __stdcall GetFileVersion(LPCWSTR lptstrFilename, FILE_VERSION *FileVersion) bool OverrideSL(LPWSTR ValueName, DWORD *Value) { + INI_VAR_DWORD Variable = {0}; + if (IniFile->VariableExists(INI, "SLPolicy", ValueName)) { - if (!(IniFile->GetVariableInSection("SLPolicy", ValueName, Value))) *Value = 0; + if (!(IniFile->GetVariableInSection("SLPolicy", ValueName, &Variable))) *Value = 0; return true; } + *Value = Variable.ValueDec; return false; } @@ -482,8 +485,8 @@ void Hook() AlreadyHooked = true; WriteToLog("Loading configuration...\r\n"); - *IniFile = new INI_FILE(ExtractFilePath(GetBinaryPath()) + L"rdpwrap.ini"); - if (*IniFile == NULL) + IniFile = new INI_FILE(ExtractFilePath(GetBinaryPath()) + L"rdpwrap.ini"); + if (IniFile == NULL) { WriteToLog("Error: Failed to load configuration\r\n"); return; @@ -822,4 +825,4 @@ void WINAPI SvchostPushServiceGlobals(void *lpGlobalData) if (!AlreadyHooked) Hook(); if (_SvchostPushServiceGlobals != NULL) _SvchostPushServiceGlobals(lpGlobalData); -}
\ No newline at end of file +} |