Fix include path.

Revert a FreePool mistakenly commented out.
This commit is contained in:
jief 2023-11-05 18:56:53 +01:00
parent 883e27b0a2
commit 88a2a69734
11 changed files with 10 additions and 25 deletions

View File

@ -22,7 +22,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include "Hotkey.h"
#include "HwErrRecSupport.h"
//#include "CpuDxe.h"
#include "../Version.h"
#include "../../Version.h"
#define PERF_DATA_MAX_LENGTH 0x4000

View File

@ -2470,7 +2470,7 @@ GetDriverNameWorker (
BestLanguage,
DriverName
);
// FreePool(BestLanguage); // it was not allocated
FreePool(BestLanguage); // it was not allocated // Jief : it is allocated by GetBestLanguage from DriverHealthSelectBestLanguage from GetComponentNameWorker
return Status;
}

View File

@ -24,7 +24,7 @@ Revision History:
#include "PeLoader.h"
#include "LzmaDecompress.h"
//#include "TianoDecompress.h"
#include "../Version.h"
#include "../../Version.h"
EFILDR_LOADED_IMAGE DxeCoreImage;
EFILDR_LOADED_IMAGE DxeIplImage;

View File

@ -33,7 +33,7 @@ Module Name:
#include "FSInject.h"
//#include "../Version.h"
//#include "../../Version.h"
//CONST CHAR8* CloverRevision = REVISION_STR;

View File

@ -44,7 +44,7 @@
#define DBG(...)
#endif
#include "../Version.h"
#include "../../Version.h"
CONST CHAR8* CloverRevision = REVISION_STR;
STATIC UINTN Counter = 0;

View File

@ -45,7 +45,7 @@
#define DBG(...)
#endif
#include "../Version.h"
#include "../../Version.h"
CONST CHAR8* CloverRevision = REVISION_STR;
STATIC UINTN Counter = 0;

View File

@ -44,7 +44,7 @@
#define DBG(...)
#endif
#include "../Version.h"
#include "../../Version.h"
CONST CHAR8* CloverRevision = REVISION_STR;
STATIC UINTN Counter = 0;

View File

@ -40,7 +40,7 @@
#define DBG(...)
#endif
#include "../Version.h"
#include "../../Version.h"
CONST CHAR8* CloverRevision = REVISION_STR;

View File

@ -6,7 +6,7 @@
*/
#include "CloverVersion.h"
#include "../../../Version.h"
#include "../../Version.h"

View File

@ -45,19 +45,12 @@ class XArray
void setSize(size_t l);
//low case functions like in std::vector
#ifdef JIEF_DEBUG
const TYPE& begin() const { if ( m_len == 0 ) panic("m_len == 0"); return ElementAt(0); }
TYPE& begin() { if ( m_len == 0 ) panic("m_len == 0"); return ElementAt(0); }
const TYPE& end() const { if ( m_len == 0 ) panic("m_len == 0"); return ElementAt(m_len - 1); }
TYPE& end() { if ( m_len == 0 ) panic("m_len == 0"); return ElementAt(m_len - 1); }
#else
const TYPE& begin() const { if ( m_len == 0 ) return 0; return ElementAt(0); }
TYPE& begin() { if ( m_len == 0 ) return 0; return ElementAt(0); }
const TYPE& end() const { if ( m_len == 0 ) return 0; return ElementAt(m_len - 1); }
TYPE& end() { if ( m_len == 0 ) return 0; return ElementAt(m_len - 1); }
#endif
size_t insert(const TYPE newElement, size_t pos, size_t count = 1) { return Insert(newElement, pos, count); }

View File

@ -57,18 +57,10 @@ protected:
template<typename IntegralType, enable_if(is_integral(IntegralType))>
void stealValueFrom(T* p, IntegralType count, IntegralType allocatedSize) {
if ( count < 0 ) {
#ifdef JIEF_DEBUG
panic("XBuffer::stealValueFrom : count < 0. System halted\n");
#else
return;
#endif
}
if ( allocatedSize < count ) {
#ifdef JIEF_DEBUG
panic("XBuffer::stealValueFrom : allocatedSize < count. System halted\n");
#else
return;
#endif
}
if( _WData ) free(_WData);
m_allocatedSize = allocatedSize;