Merge branch 'master' into d3d12
This commit is contained in:
commit
cb4fb451bf
|
@ -156,9 +156,12 @@ class Logger {
|
|||
void WriteThread() {
|
||||
RingBuffer rb(buffer_, kBufferSize);
|
||||
uint32_t idle_loops = 0;
|
||||
while (running_) {
|
||||
while (true) {
|
||||
bool did_write = false;
|
||||
rb.set_write_offset(write_tail_);
|
||||
if (!running_ && rb.empty()) {
|
||||
break;
|
||||
}
|
||||
while (!rb.empty()) {
|
||||
did_write = true;
|
||||
|
||||
|
|
|
@ -502,9 +502,8 @@ void UserModule::Dump() {
|
|||
}
|
||||
|
||||
auto library_data =
|
||||
reinterpret_cast<const uint8_t*>(opt_import_libraries) +
|
||||
opt_import_libraries->string_table.size + 12;
|
||||
uint32_t library_offset = 0;
|
||||
reinterpret_cast<const uint8_t*>(opt_import_libraries);
|
||||
uint32_t library_offset = opt_import_libraries->string_table.size + 12;
|
||||
while (library_offset < opt_import_libraries->size) {
|
||||
auto library = reinterpret_cast<const xex2_import_library*>(
|
||||
library_data + library_offset);
|
||||
|
|
Loading…
Reference in New Issue