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

Incorrect type on Railgun Structs? #108

Open
Meatballs1 opened this issue Dec 27, 2014 · 0 comments
Open

Incorrect type on Railgun Structs? #108

Meatballs1 opened this issue Dec 27, 2014 · 0 comments
Assignees

Comments

@Meatballs1
Copy link
Contributor

The following structs describe a ULONG_PTR for the buffer sizes, but these appear to be DWORDs from the naming convention, and also are cast as DWORDs in the railgun code ? e.g. railgun.c:530 (I may be confused though (DWORD *)&blah is too much for my simple mind to contemplate). If it is a pointer than maybe the name should be changed?

25 typedef struct _RAILGUN_INPUT 
26 { 
27  const char * cpDllName; 
28  const char * cpFuncName; 
29  const char * cpCallConv; 
30  BYTE * pBufferIN; 
31  BYTE * pBufferINOUT; 
32  ULONG_PTR dwBufferSizeIN; 
33  ULONG_PTR dwBufferSizeOUT; 
34  ULONG_PTR dwBufferSizeINOUT; 
35  Tlv pStackDescriptorTlv; 
36 } RAILGUN_INPUT; 
37 
38 typedef struct _RAILGUN_OUTPUT 
39 { 
40  DWORD dwLastError; 
41  QWORD qwReturnValue; 
42  const char * pErrMsg; 
43  BYTE * pBufferOUT; 
44  BYTE * pBufferINOUT; 
45  ULONG_PTR dwBufferSizeOUT; 
46  ULONG_PTR dwBufferSizeINOUT; 
47 } RAILGUN_OUTPUT; 
@bcook-r7 bcook-r7 self-assigned this Jan 5, 2015
@bcook-r7 bcook-r7 self-assigned this Feb 19, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants