Skip to content

Commit

Permalink
Merge pull request #45 from mjblack/fix_dup_and_heap_alloc_err
Browse files Browse the repository at this point in the history
Fix fun up and missing HeapAlloc fun
  • Loading branch information
mjblack authored Sep 2, 2024
2 parents c4da22c + 3cdc025 commit e7c1d7e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/crystal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ jobs:
build:
runs-on: windows-2019
steps:
- name: Install Crystal 1.11.0
- name: Install Crystal 1.13.2
shell: pwsh
run: |
(New-Object Net.WebClient).DownloadFile("https://github.com/crystal-lang/crystal/releases/download/1.11.0/crystal-1.11.0-windows-x86_64-msvc-unsupported.exe", "$PWD\crystal-1.11.0-windows-x86_64-msvc-unsupported.exe")
$code = Start-Process .\crystal-1.11.0-windows-x86_64-msvc-unsupported.exe -Wait -ArgumentList "/VERYSILENT","/SP-","/SUPPRESSMSGBOXES","/LOG=$PWD\OUTPUT.LOG" -Verb RunAs
(New-Object Net.WebClient).DownloadFile("https://github.com/crystal-lang/crystal/releases/download/1.13.2/crystal-1.13.2-windows-x86_64-msvc-unsupported.exe", "$PWD\crystal-1.13.2-windows-x86_64-msvc-unsupported.exe")
$code = Start-Process .\crystal-1.13.2-windows-x86_64-msvc-unsupported.exe -Wait -ArgumentList "/VERYSILENT","/SP-","/SUPPRESSMSGBOXES","/LOG=$PWD\OUTPUT.LOG" -Verb RunAs
dir $env:LOCALAPPDATA\Programs\Crystal
- name: crystal version
shell: pwsh
Expand Down
4 changes: 2 additions & 2 deletions shard.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: win32cr
version: 0.3.6
version: 0.3.7

authors:
- Matthew J. Black <[email protected]>

crystal: 1.11.0
crystal: 1.13.2

license: MIT
1 change: 1 addition & 0 deletions spec/system/registry_spec.cr
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require "c/heapapi"
require "../spec_helper"
require "../../src/win32cr/system/registry"

Expand Down
3 changes: 2 additions & 1 deletion src/win32cr/system/threading.cr
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,8 @@ lib LibWin32
fun QueryDepthSList(listhead : SLIST_HEADER*) : UInt16

# Params # pfnapc : PAPCFUNC [In],hthread : LibC::HANDLE [In],dwdata : LibC::UINT_PTR [In]
fun QueueUserAPC(pfnapc : PAPCFUNC, hthread : LibC::HANDLE, dwdata : LibC::UINT_PTR) : UInt32
# Commented out because function is part of Lib C
#fun QueueUserAPC(pfnapc : PAPCFUNC, hthread : LibC::HANDLE, dwdata : LibC::UINT_PTR) : UInt32

# Params # apcroutine : PAPCFUNC [In],thread : LibC::HANDLE [In],data : LibC::UINT_PTR [In],flags : QUEUE_USER_APC_FLAGS [In]
fun QueueUserAPC2(apcroutine : PAPCFUNC, thread : LibC::HANDLE, data : LibC::UINT_PTR, flags : QUEUE_USER_APC_FLAGS) : LibC::BOOL
Expand Down

0 comments on commit e7c1d7e

Please sign in to comment.