Skip to content
This repository has been archived by the owner on Jun 29, 2024. It is now read-only.

Commit

Permalink
Come on Github. Please?
Browse files Browse the repository at this point in the history
  • Loading branch information
C0D3-M4513R committed Oct 14, 2023
1 parent 3f1df12 commit 9384d64
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
fail-fast: false
matrix:
profile: [ "dev","release" ]
toolchain: ["stable"] #"beta" I used beta when it was relavent for the asm! macro.
toolchain: ["stable"] #"beta" I used beta when it was relevant for the asm! macro.
features: ['"alloc"','"alloc std"','"alloc x86tox64"','"alloc x86tox64 std"']
target: [i686-pc-windows-msvc,x86_64-pc-windows-msvc]
include:
Expand All @@ -44,7 +44,7 @@ jobs:
- name: build
run: cargo build --no-default-features --profile ${{ matrix.profile }} --features ${{ matrix.features }} --target ${{ matrix.target }} --package inject-lib
- name: test
run: cargo test --no-default-features --profile ${{ matrix.profile }} --features ${{ matrix.features }} --target ${{ matrix.target }} --package inject-lib
run: cargo test --no-fail-fast --no-default-features --profile ${{ matrix.profile }} --features ${{ matrix.features }} --target ${{ matrix.target }} --package inject-lib

build-ubuntu:
name: "build-ubuntu"
Expand All @@ -65,6 +65,6 @@ jobs:
cache-target: ${{ matrix.flag }}
channel: ${{ matrix.toolchain }}
- name: build
run: cargo build ${{ matrix.args }} --profile ${{ matrix.profile }} --no-default-features --features "ntdll alloc" --package inject-lib
run: cargo build --no-fail-fast --profile ${{ matrix.profile }} --no-default-features --features "ntdll alloc" --package inject-lib
- name: test
run: cargo test ${{ matrix.args }} --profile ${{ matrix.profile }} --no-default-features --features "ntdll alloc" --package inject-lib
run: cargo test --no-fail-fast --profile ${{ matrix.profile }} --no-default-features --features "ntdll alloc" --package inject-lib
4 changes: 2 additions & 2 deletions inject-lib/src/platforms/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ pub mod test {
use winapi::um::libloaderapi::{FreeLibrary, LoadLibraryA};
use winapi::um::tlhelp32::MODULEENTRY32W;
use winapi::um::winbase::CREATE_NEW_CONSOLE;
use winapi::um::winnt::PROCESS_ALL_ACCESS;
use winapi::um::winnt::{PROCESS_ALL_ACCESS, PROCESS_QUERY_INFORMATION, PROCESS_TERMINATE, PROCESS_VM_OPERATION, PROCESS_VM_READ, PROCESS_VM_WRITE, SYNCHRONIZE};

std::thread_local! {
pub(in super) static FNS_M:FNS=FNS::default();
Expand Down Expand Up @@ -864,7 +864,7 @@ pub mod test {
super::process::Process::from_raw_parts(
c.as_raw_handle() as usize,
c.id(),
CREATE_NEW_CONSOLE | PROCESS_ALL_ACCESS,
CREATE_NEW_CONSOLE | PROCESS_VM_OPERATION | PROCESS_VM_WRITE | PROCESS_VM_READ | PROCESS_QUERY_INFORMATION | PROCESS_TERMINATE,
)
};
(c, proc)
Expand Down

0 comments on commit 9384d64

Please sign in to comment.