Skip to content

Commit

Permalink
Fixed mistakes made in commit 5af2ef1 (“Adapted #getVolumeInfo:into:s…
Browse files Browse the repository at this point in the history
…ize: for StWin32Info to […]”): the use of ‘ulong* nil’ caused an Error “missing argument name” to be signaled, and the use of ‘Win32WideString nil’ caused an FFIUnsupportedUntypedLiteral to be signaled.
  • Loading branch information
Rinzwind committed Mar 28, 2024
1 parent 0446170 commit df37574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NewTools-FileBrowser/StWin32Info.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ StWin32Info class >> getVolumeInfo: driveLetter [
{ #category : 'private-ffi' }
StWin32Info class >> getVolumeInfo: volumeName into: lpBuffer size: nSize [
"Primitive to obtain an environment variable using windows Wide Strings"
^ self ffiCall: #(uint GetVolumeInformationW (Win32WideString volumeName, Win32WideString lpBuffer, ulong nSize, ulong* nil, ulong* nil, ulong* nil, Win32WideString nil, ulong 0)) module: #kernel32
^ self ffiCall: #(uint GetVolumeInformationW (Win32WideString volumeName, Win32WideString lpBuffer, ulong nSize, void* 0, void* 0, void* 0, Win32WideString 0, ulong 0)) module: #kernel32
]

0 comments on commit df37574

Please sign in to comment.