mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-12-22 16:08:07 +01:00
Fix include path.
Revert a FreePool mistakenly commented out.
This commit is contained in:
parent
883e27b0a2
commit
88a2a69734
@ -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
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -33,7 +33,7 @@ Module Name:
|
||||
|
||||
#include "FSInject.h"
|
||||
|
||||
//#include "../Version.h"
|
||||
//#include "../../Version.h"
|
||||
//CONST CHAR8* CloverRevision = REVISION_STR;
|
||||
|
||||
|
||||
|
@ -44,7 +44,7 @@
|
||||
#define DBG(...)
|
||||
#endif
|
||||
|
||||
#include "../Version.h"
|
||||
#include "../../Version.h"
|
||||
CONST CHAR8* CloverRevision = REVISION_STR;
|
||||
STATIC UINTN Counter = 0;
|
||||
|
||||
|
@ -45,7 +45,7 @@
|
||||
#define DBG(...)
|
||||
#endif
|
||||
|
||||
#include "../Version.h"
|
||||
#include "../../Version.h"
|
||||
CONST CHAR8* CloverRevision = REVISION_STR;
|
||||
STATIC UINTN Counter = 0;
|
||||
|
||||
|
@ -44,7 +44,7 @@
|
||||
#define DBG(...)
|
||||
#endif
|
||||
|
||||
#include "../Version.h"
|
||||
#include "../../Version.h"
|
||||
CONST CHAR8* CloverRevision = REVISION_STR;
|
||||
STATIC UINTN Counter = 0;
|
||||
|
||||
|
@ -40,7 +40,7 @@
|
||||
#define DBG(...)
|
||||
#endif
|
||||
|
||||
#include "../Version.h"
|
||||
#include "../../Version.h"
|
||||
CONST CHAR8* CloverRevision = REVISION_STR;
|
||||
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
*/
|
||||
|
||||
#include "CloverVersion.h"
|
||||
#include "../../../Version.h"
|
||||
#include "../../Version.h"
|
||||
|
||||
|
||||
|
||||
|
@ -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); }
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user