Skip to content

Commit 17fb247

Browse files
committed
Tabs -> Spaces
1 parent e9cb7cb commit 17fb247

16 files changed

Lines changed: 367 additions & 355 deletions

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
charset = utf-8
7+
indent_style = space
8+
indent_size = 4
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false

BIDebugEngine/BIDebugEngine/Debugger.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -254,13 +254,13 @@ void Debugger::onScriptError(GameState * gs) {
254254
BPAction_Halt hAction(haltType::error);
255255
hAction.execute(this, nullptr, DebuggerInstructionInfo{ nullptr,(RV_VMContext*)gs->current_context ,gs });
256256
} else {
257-
if (!gs->current_context) return;
257+
if (!gs->current_context) return;
258258
auto& context = *gs->current_context;
259259
std::stringstream str;
260260

261-
bool dumpFullArray = gs->eval->local->get_variable("_debug_dumpFullArrays") != nullptr;
261+
bool dumpFullArray = gs->eval->local->get_variable("_debug_dumpFullArrays") != nullptr;
262262

263-
str << "Error at " << "L" << context.sdocpos.sourceline << " (" << context.sdocpos.sourcefile << ")\nCallstack:";
263+
str << "Error at " << "L" << context.sdocpos.sourceline << " (" << context.sdocpos.sourcefile << ")\nCallstack:";
264264
intercept::sqf::diag_log(str.str());
265265
str.str(std::string());
266266
for (auto& it : context.callstack) {
@@ -297,17 +297,17 @@ void Debugger::onScriptError(GameState * gs) {
297297

298298
} break;
299299
case 0x254c4241: { //CallStackItemArrayForEach
300-
continue;
301-
//Level doesn't have any code. It's all inside a CallStackitemData one level lower
300+
continue;
301+
//Level doesn't have any code. It's all inside a CallStackitemData one level lower
302302
} break;
303303
#ifdef X64
304-
case 0x2dc1ba43da7f1af7: {//CallStackItemArrayCount
304+
case 0x2dc1ba43da7f1af7: {//CallStackItemArrayCount
305305
#else
306-
case 0x1337: { //CallStackItemData
306+
case 0x1337: { //CallStackItemData
307307
#endif
308-
continue;
308+
continue;
309309
//Level doesn't have any code. It's all inside a CallStackitemData one level lower
310-
}
310+
}
311311
default:
312312
char fileBuffer[256]{ 0 };
313313

@@ -318,18 +318,18 @@ void Debugger::onScriptError(GameState * gs) {
318318

319319

320320

321-
str << "\t[" << it->_scopeName << "] " << "L" << line << " (" << sourceFile << ")";
321+
str << "\t[" << it->_scopeName << "] " << "L" << line << " (" << sourceFile << ")";
322322
intercept::sqf::diag_log(str.str());
323323
str.str(std::string());
324324

325325

326326
it->_varSpace.variables.for_each([&str, dumpFullArray](const game_variable& var) {
327327
if (!dumpFullArray && var.value.type_enum() == game_data_type::ARRAY && var.value.size() > 50) {
328-
str << "\t\t" << var.name << ": Array of " << var.value.size() << " elements. Not printed because too long. Set variable '_debug_dumpFullArrays' to dump force printing.";
328+
str << "\t\t" << var.name << ": Array of " << var.value.size() << " elements. Not printed because too long. Set variable '_debug_dumpFullArrays' to dump force printing.";
329329
} else {
330330
auto string = static_cast<std::string>(var.value).substr(0,200);
331331
std::replace(string.begin(), string.end(), '\n', ' ');
332-
str << "\t\t" << var.name << ":" << string;
332+
str << "\t\t" << var.name << ":" << string;
333333
}
334334
intercept::sqf::diag_log(str.str());
335335
str.str(std::string());

BIDebugEngine/BIDebugEngine/EngineHook.cpp

Lines changed: 69 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ HookManager::Pattern pat_IsDebuggerAttached{ //PROF ONLY
125125
};
126126

127127
//\x48\x8B\x0D\x00\x00\x00\x00\x48\x8B\x01\x48\xFF\x20 xxx????xxxxxx
128-
//\xCC\xCC\xCC xxx
128+
//\xCC\xCC\xCC xxx
129129
//\x48\x8B\xD1\x48\x8B\x0D\x00\x00\x00\x00\x48\x8B\x01\x48\xFF\x60\x08 xxxxxx????xxxxxxx
130130
HookManager::Pattern pat_EngineAliveFnc{
131131
"xxx????xxxxxxxxxxxxxxx????xxxxxxx",
@@ -171,15 +171,15 @@ HookManager::Pattern pat_worldSimulate{//PROF ONLY
171171
//#TODO this onMissionEvent func only works for events without args. Need the other ones
172172

173173
//HookManager::Pattern pat_worldMissionEventStart{//00B19E5C PROF ONLY
174-
// "xxxxx?xx?xx?xxxxxxxxxxx??xxx?xx????x????x?x?xx?xx????????x????xx",
175-
// "\x55\x8b\xec\x83\xe4\x00\x83\xec\x00\x8b\x45\x00\x53\x8b\xd9\x56\x8d\x34\x80\x57\x83\x7c\xb3\x00\x00\x89\x74\x24\x00\x0f\x8e\x00\x00\x00\x00\xa1\x00\x00\x00\x00\xa8\x00\x75\x00\x83\xc8\x00\xc7\x05\x00\x00\x00\x00\x00\x00\x00\x00\xa3\x00\x00\x00\x00\xc7\x05",
176-
// 0x00B19E5C - 0x00B19E50
174+
// "xxxxx?xx?xx?xxxxxxxxxxx??xxx?xx????x????x?x?xx?xx????????x????xx",
175+
// "\x55\x8b\xec\x83\xe4\x00\x83\xec\x00\x8b\x45\x00\x53\x8b\xd9\x56\x8d\x34\x80\x57\x83\x7c\xb3\x00\x00\x89\x74\x24\x00\x0f\x8e\x00\x00\x00\x00\xa1\x00\x00\x00\x00\xa8\x00\x75\x00\x83\xc8\x00\xc7\x05\x00\x00\x00\x00\x00\x00\x00\x00\xa3\x00\x00\x00\x00\xc7\x05",
176+
// 0x00B19E5C - 0x00B19E50
177177
//};
178178
//
179179
//HookManager::Pattern pat_worldMissionEventEnd{//00B1A0AB
180-
// "xxx?xxx?xxxxxx?xx????xxxxx?xxxxxxx",
181-
// "\x8b\x54\x24\x00\x85\xd2\x74\x00\xf0\x0f\xc1\x3a\x4f\x75\x00\x8b\x0d\x00\x00\x00\x00\x52\x8b\x01\xff\x50\x00\x5f\x5e\x5b\x8b\xe5\x5d\xc2",
182-
// 0x00B1A0AB - 0x00B1A090
180+
// "xxx?xxx?xxxxxx?xx????xxxxx?xxxxxxx",
181+
// "\x8b\x54\x24\x00\x85\xd2\x74\x00\xf0\x0f\xc1\x3a\x4f\x75\x00\x8b\x0d\x00\x00\x00\x00\x52\x8b\x01\xff\x50\x00\x5f\x5e\x5b\x8b\xe5\x5d\xc2",
182+
// 0x00B1A0AB - 0x00B1A090
183183
//};
184184

185185

@@ -342,20 +342,20 @@ void EngineHook::placeHooks() {
342342
//OutputDebugStringA("\t\tVersion: ");
343343
//OutputDebugStringA(productVersion ? productVersion : "");
344344
//OutputDebugStringA("\n");
345-
//
345+
//
346346
//if (!productType || !productVersion) {
347347
// std::string error("Could not find gameVersion or gameType. This means this game version is likely incompatible! \n");
348348
// error += "Version: " + std::string(productVersion ? productVersion : "NOT FOUND") + "\n";
349349
// error += "Type: " + std::string(productType ? productType : "NOT FOUND") + "\n";
350350
// if (productType && strncmp(productType, "", 2))
351351
// error += "You are not running a Profiling version of Arma. This is needed for Arma Debug Engine to work!";
352-
//
352+
//
353353
// //MessageBox(error.c_str(), ErrorMsgBoxType::error);
354354
// return;
355355
//}
356356
//if (productType && strncmp(productType, "Arma3RetailProfile_DX11", 13)) {
357357
// std::string error("You are not running a Profiling version of Arma. This is needed for Arma Debug Engine to work!\n\nFurther error messages might be caused by this.");
358-
//
358+
//
359359
// //MessageBox(error.c_str(), ErrorMsgBoxType::warning);
360360
//}
361361

@@ -369,27 +369,27 @@ void EngineHook::placeHooks() {
369369
HookIntegrity HI;
370370
#ifdef X64
371371

372-
GASM.setHook(SQF_Assembly_Iface::InstructionType::GameInstructionNewExpression, [](intercept::types::game_instruction* instr, intercept::types::game_state& state, intercept::types::vm_context& ctx) -> void {
373-
GlobalEngineHook._scriptInstruction(instr, state, ctx);
374-
});
375-
GASM.setHook(SQF_Assembly_Iface::InstructionType::GameInstructionConst, [](intercept::types::game_instruction* instr, intercept::types::game_state& state, intercept::types::vm_context& ctx) -> void {
376-
GlobalEngineHook._scriptInstruction(instr, state, ctx);
377-
});
378-
GASM.setHook(SQF_Assembly_Iface::InstructionType::GameInstructionFunction, [](intercept::types::game_instruction* instr, intercept::types::game_state& state, intercept::types::vm_context& ctx) -> void {
379-
GlobalEngineHook._scriptInstruction(instr, state, ctx);
380-
});
381-
GASM.setHook(SQF_Assembly_Iface::InstructionType::GameInstructionOperator, [](intercept::types::game_instruction* instr, intercept::types::game_state& state, intercept::types::vm_context& ctx) -> void {
382-
GlobalEngineHook._scriptInstruction(instr, state, ctx);
383-
});
384-
GASM.setHook(SQF_Assembly_Iface::InstructionType::GameInstructionAssignment, [](intercept::types::game_instruction* instr, intercept::types::game_state& state, intercept::types::vm_context& ctx) -> void {
385-
GlobalEngineHook._scriptInstruction(instr, state, ctx);
386-
});
387-
GASM.setHook(SQF_Assembly_Iface::InstructionType::GameInstructionVariable, [](intercept::types::game_instruction* instr, intercept::types::game_state& state, intercept::types::vm_context& ctx) -> void {
388-
GlobalEngineHook._scriptInstruction(instr, state, ctx);
389-
});
390-
GASM.setHook(SQF_Assembly_Iface::InstructionType::GameInstructionArray, [](intercept::types::game_instruction* instr, intercept::types::game_state& state, intercept::types::vm_context& ctx) -> void {
391-
GlobalEngineHook._scriptInstruction(instr, state, ctx);
392-
});
372+
GASM.setHook(SQF_Assembly_Iface::InstructionType::GameInstructionNewExpression, [](intercept::types::game_instruction* instr, intercept::types::game_state& state, intercept::types::vm_context& ctx) -> void {
373+
GlobalEngineHook._scriptInstruction(instr, state, ctx);
374+
});
375+
GASM.setHook(SQF_Assembly_Iface::InstructionType::GameInstructionConst, [](intercept::types::game_instruction* instr, intercept::types::game_state& state, intercept::types::vm_context& ctx) -> void {
376+
GlobalEngineHook._scriptInstruction(instr, state, ctx);
377+
});
378+
GASM.setHook(SQF_Assembly_Iface::InstructionType::GameInstructionFunction, [](intercept::types::game_instruction* instr, intercept::types::game_state& state, intercept::types::vm_context& ctx) -> void {
379+
GlobalEngineHook._scriptInstruction(instr, state, ctx);
380+
});
381+
GASM.setHook(SQF_Assembly_Iface::InstructionType::GameInstructionOperator, [](intercept::types::game_instruction* instr, intercept::types::game_state& state, intercept::types::vm_context& ctx) -> void {
382+
GlobalEngineHook._scriptInstruction(instr, state, ctx);
383+
});
384+
GASM.setHook(SQF_Assembly_Iface::InstructionType::GameInstructionAssignment, [](intercept::types::game_instruction* instr, intercept::types::game_state& state, intercept::types::vm_context& ctx) -> void {
385+
GlobalEngineHook._scriptInstruction(instr, state, ctx);
386+
});
387+
GASM.setHook(SQF_Assembly_Iface::InstructionType::GameInstructionVariable, [](intercept::types::game_instruction* instr, intercept::types::game_state& state, intercept::types::vm_context& ctx) -> void {
388+
GlobalEngineHook._scriptInstruction(instr, state, ctx);
389+
});
390+
GASM.setHook(SQF_Assembly_Iface::InstructionType::GameInstructionArray, [](intercept::types::game_instruction* instr, intercept::types::game_state& state, intercept::types::vm_context& ctx) -> void {
391+
GlobalEngineHook._scriptInstruction(instr, state, ctx);
392+
});
393393

394394
//HI.__instructionBreakpoint = GlobalHookManager.placeHook(hookTypes::instructionBreakpoint, pat_instructionBreakpoint, reinterpret_cast<uintptr_t>(instructionBreakpoint), instructionBreakpointJmpBack, 0);
395395
//has to jmpback 13CF0B6 wants 0x00000000013cf0af
@@ -401,24 +401,24 @@ void EngineHook::placeHooks() {
401401
if (scriptPreprocessorDefineDefine) //else report error
402402
HI.scriptPreprocConstr = GlobalHookManager.placeHook(hookTypes::scriptPreprocessorConstructor, pat_scriptPreprocessorConstructor, reinterpret_cast<uintptr_t>(scriptPreprocessorConstructor), scriptPreprocessorConstructorJmpBack, 0xA);
403403

404-
static auto assertHook = intercept::client::host::register_sqf_command("assert"sv, "", [](uintptr_t gs, game_value_parameter par) -> game_value {
405-
if ((bool)par) GlobalEngineHook._onScriptAssert(gs);
406-
return {};
407-
}, game_data_type::NOTHING, game_data_type::BOOL);
408-
static auto haltHook = intercept::client::host::register_sqf_command("halt"sv, "", [](uintptr_t gs) -> game_value {
409-
GlobalEngineHook._onScriptHalt(gs);
410-
return {};
411-
}, game_data_type::NOTHING);
412-
static auto echoHook = intercept::client::host::register_sqf_command("echo"sv, "", [](uintptr_t gs, game_value_parameter par) -> game_value {
413-
GlobalEngineHook._onScriptEcho(par);
414-
return {};
415-
}, game_data_type::NOTHING, game_data_type::STRING);
416-
417-
418-
HI.scriptAssert = assertHook.has_function();
419-
HI.scriptHalt = haltHook.has_function();
420-
HI.scriptEcho = echoHook.has_function();
421-
HI.__instructionBreakpoint = GASM.ready;
404+
static auto assertHook = intercept::client::host::register_sqf_command("assert"sv, "", [](uintptr_t gs, game_value_parameter par) -> game_value {
405+
if ((bool)par) GlobalEngineHook._onScriptAssert(gs);
406+
return {};
407+
}, game_data_type::NOTHING, game_data_type::BOOL);
408+
static auto haltHook = intercept::client::host::register_sqf_command("halt"sv, "", [](uintptr_t gs) -> game_value {
409+
GlobalEngineHook._onScriptHalt(gs);
410+
return {};
411+
}, game_data_type::NOTHING);
412+
static auto echoHook = intercept::client::host::register_sqf_command("echo"sv, "", [](uintptr_t gs, game_value_parameter par) -> game_value {
413+
GlobalEngineHook._onScriptEcho(par);
414+
return {};
415+
}, game_data_type::NOTHING, game_data_type::STRING);
416+
417+
418+
HI.scriptAssert = assertHook.has_function();
419+
HI.scriptHalt = haltHook.has_function();
420+
HI.scriptEcho = echoHook.has_function();
421+
HI.__instructionBreakpoint = GASM.ready;
422422

423423

424424
#else
@@ -459,7 +459,7 @@ void EngineHook::placeHooks() {
459459
GlobalDebugger.setHookIntegrity(HI);
460460

461461
if (!
462-
( //HI.__scriptVMConstructor
462+
( //HI.__scriptVMConstructor
463463
//&& HI.__scriptVMSimulateStart
464464
//&& HI.__scriptVMSimulateEnd
465465
//&&
@@ -478,21 +478,21 @@ void EngineHook::placeHooks() {
478478
std::string error("Some hooks have failed. Certain functionality might not be available.\n\n");
479479

480480
bool fatal = false;
481-
if (!HI.__scriptVMConstructor) error += "SMVCON \tFAILED MINOR \n\tEffect: Not important\n\n";
482-
if (!HI.__scriptVMSimulateStart) error += "SVMSIMST\tFAILED MINOR \n\tEffect: Not important\n\n";
483-
if (!HI.__scriptVMSimulateEnd) error += "SVMSIMEN\tFAILED MINOR \n\tEffect: Not important\n\n";
484-
if (!HI.__instructionBreakpoint) { error += "INSTRBP \tFAILED FATAL \n\tEffect: No Breakpoints possible.\n\n"; fatal = true; }
485-
if (!HI.__worldSimulate) error += "WSIM \tFAILED MINOR \n\tEffect: Not important\n\n";
486-
if (!HI.__worldMissionEventStart) error += "WMEVS \tFAILED MINOR \n\tEffect: Not important\n\n";
487-
if (!HI.__worldMissionEventEnd) error += "WMEVE \tFAILED MINOR \n\tEffect: Not important\n\n";
488-
if (!HI.__onScriptError) error += "SCRERR \tFAILED WARNING \n\tEffect: script Error will not trigger a Breakpoint\n\n";
489-
if (!HI.scriptPreprocDefine) error += "PREDEF \tFAILED WARNING \n\tEffect: Preprocessor Macro \"DEBUG\" will not be available\n\n";
490-
if (!HI.scriptPreprocConstr) error += "PRECON \tFAILED WARNING \n\tEffect: Preprocessor Macro \"DEBUG\" will not be available\n\n";
491-
if (!HI.scriptAssert) error += "SCRASS \tFAILED WARNING \n\tEffect: Script Command \"assert\" will not trigger a break\n\n";
492-
if (!HI.scriptHalt) error += "SCRHALT \tFAILED WARNING \n\tEffect: Script Command \"halt\" will not trigger a break\n\n";
493-
if (!HI.scriptEcho) error += "SCRECHO \tFAILED WARNING \n\tEffect: Script Command \"echo\" will not echo anything\n\n";
494-
if (!HI.engineAlive) error += "ALIVE \tFAILED WARNING \n\tEffect: Game might think it froze if a breakpoint is triggered\n\n";
495-
if (!HI.enableMouse) error += "ENMOUSE \tFAILED WARNING \n\tEffect: Mouse might be stuck in Game and has to be Freed by opening Task-Manager via CTRL+ALT+DEL\n\n";
481+
if (!HI.__scriptVMConstructor) error += "SMVCON \tFAILED MINOR \n\tEffect: Not important\n\n";
482+
if (!HI.__scriptVMSimulateStart) error += "SVMSIMST\tFAILED MINOR \n\tEffect: Not important\n\n";
483+
if (!HI.__scriptVMSimulateEnd) error += "SVMSIMEN\tFAILED MINOR \n\tEffect: Not important\n\n";
484+
if (!HI.__instructionBreakpoint) { error += "INSTRBP \tFAILED FATAL \n\tEffect: No Breakpoints possible.\n\n"; fatal = true; }
485+
if (!HI.__worldSimulate) error += "WSIM \tFAILED MINOR \n\tEffect: Not important\n\n";
486+
if (!HI.__worldMissionEventStart) error += "WMEVS \tFAILED MINOR \n\tEffect: Not important\n\n";
487+
if (!HI.__worldMissionEventEnd) error += "WMEVE \tFAILED MINOR \n\tEffect: Not important\n\n";
488+
if (!HI.__onScriptError) error += "SCRERR \tFAILED WARNING \n\tEffect: script Error will not trigger a Breakpoint\n\n";
489+
if (!HI.scriptPreprocDefine) error += "PREDEF \tFAILED WARNING \n\tEffect: Preprocessor Macro \"DEBUG\" will not be available\n\n";
490+
if (!HI.scriptPreprocConstr) error += "PRECON \tFAILED WARNING \n\tEffect: Preprocessor Macro \"DEBUG\" will not be available\n\n";
491+
if (!HI.scriptAssert) error += "SCRASS \tFAILED WARNING \n\tEffect: Script Command \"assert\" will not trigger a break\n\n";
492+
if (!HI.scriptHalt) error += "SCRHALT \tFAILED WARNING \n\tEffect: Script Command \"halt\" will not trigger a break\n\n";
493+
if (!HI.scriptEcho) error += "SCRECHO \tFAILED WARNING \n\tEffect: Script Command \"echo\" will not echo anything\n\n";
494+
if (!HI.engineAlive) error += "ALIVE \tFAILED WARNING \n\tEffect: Game might think it froze if a breakpoint is triggered\n\n";
495+
if (!HI.enableMouse) error += "ENMOUSE \tFAILED WARNING \n\tEffect: Mouse might be stuck in Game and has to be Freed by opening Task-Manager via CTRL+ALT+DEL\n\n";
496496
if (fatal) error += "\n A Fatal error occured. Your Game version is not compatible with ArmaDebugEngine. Please tell a dev.";
497497

498498
#ifdef X64
@@ -684,9 +684,9 @@ void EngineHook::onStartup() {
684684
}
685685

686686
void intercept::pre_start() {
687-
688-
GASM.init();
689-
GlobalEngineHook.placeHooks();
690-
GlobalDebugger.onStartup();
687+
688+
GASM.init();
689+
GlobalEngineHook.placeHooks();
690+
GlobalDebugger.onStartup();
691691

692692
}

BIDebugEngine/BIDebugEngine/EngineHookfncx64.asm

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,41 +47,41 @@ _TEXT SEGMENT
4747
;1.69.140.875 000000000133F0A0
4848
;PUBLIC instructionBreakpoint
4949
;instructionBreakpoint PROC
50-
;
50+
;
5151
; push rcx;
5252
; push rdx;
5353
; push r8;
5454
; push r9;
55-
;
55+
;
5656
; mov rcx, hookEnabled_Instruction; Skip if hook is disabled
5757
; test rcx, rcx;
5858
; jz _return;
5959
; mov r9, rbx; instructionBP_gameState
6060
; mov r8, [rbp+0A0h]; instructionBP_VMContext
6161
; mov rdx, r12; instructionBP_Instruction
62-
;
62+
;
6363
; mov rcx, offset GlobalEngineHook;
6464
; ; _scriptInstruction( rcx (this), rdx(instructionBP_Instruction), r8(instructionBP_VMContext), r9(instructionBP_gameState)) ;,instructionBP_IDebugScript was optimized out
65-
;
65+
;
6666
; call ?_scriptInstruction@EngineHook@@QEAAX_K000@Z; EngineHook::_scriptInstruction
6767
;_return:
68-
;
69-
;
70-
;
68+
;
69+
;
70+
;
7171
; pop r9;
7272
; pop r8;
7373
; pop rdx;
7474
; pop rcx;
75-
;
75+
;
7676
; mov rax, [r13+8]; fixup
7777
; mov rdx, [rbp+0A0h]
7878
; mov rcx, r12
7979
; ;mov rdi, [rdi+rax]
8080
; ;mov rax, [r12]
8181
; ;mov esi, [rdx+288h]
82-
;
82+
;
8383
; jmp instructionBreakpointJmpBack;
84-
;
84+
;
8585
;instructionBreakpoint ENDP
8686
8787

BIDebugEngine/BIDebugEngine/NamedPipeServer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ void NamedPipeServer::writeMessage(std::string message) {
6060
if (waitResult == WAIT_TIMEOUT) {
6161
errorCode = WAIT_TIMEOUT;
6262
} else {
63-
return; //successful write. We dont need to handle any errors
63+
return; //successful write. We dont need to handle any errors
6464
}
6565
}
6666
if (errorCode == ERROR_BROKEN_PIPE) {
@@ -115,7 +115,7 @@ std::string NamedPipeServer::readMessageBlocking() {
115115

116116
}
117117

118-
return output; //successful read. We dont need to handle any errors
118+
return output; //successful read. We dont need to handle any errors
119119
}
120120
}
121121
if (errorCode == ERROR_BROKEN_PIPE) {
@@ -152,7 +152,7 @@ void NamedPipeServer::transactMessage(char* output, int outputSize, const char*
152152
if (written == 0)
153153
errorCode = ERROR_NO_DATA;
154154
else
155-
return; //successful read. We dont need to handle any errors
155+
return; //successful read. We dont need to handle any errors
156156
}
157157
}
158158

0 commit comments

Comments
 (0)