File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -480,12 +480,16 @@ __attribute__((ms_abi)) extern "C" void SyscallHandler(uint64_t* args) {
480
480
kprintf (" file name: %s\n " , file_name);
481
481
482
482
if (IsEqualString (" ." , file_name)) {
483
- // for getdents64
484
483
ppdata.num_getdents64_called = 0 ;
485
484
args[0 ] = 5 ;
486
485
return ;
487
486
}
488
487
488
+ if (IsEqualString (" window.bmp" , file_name)) {
489
+ args[0 ] = 7 ;
490
+ return ;
491
+ }
492
+
489
493
int found_idx = -1 ;
490
494
491
495
LoaderInfo& loader_info = *reinterpret_cast <LoaderInfo*>(
@@ -517,8 +521,8 @@ __attribute__((ms_abi)) extern "C" void SyscallHandler(uint64_t* args) {
517
521
if (idx == kSyscallIndex_sys_mmap ) {
518
522
uint64_t size = args[2 ];
519
523
uint64_t fd = args[5 ];
520
- if (fd != 5 ) {
521
- kprintf (" fd != 5 \n " );
524
+ if (fd != 7 ) {
525
+ kprintf (" fd != 7 \n " );
522
526
args[0 ] = static_cast <uint64_t >(-1 );
523
527
return ;
524
528
}
You can’t perform that action at this time.
0 commit comments