Hello,
First thanks for your work. We are using it for Steam integration with our project.
I just wanted to report back to you some issues we found in the Windows part of the code.
This line won't compile, val should be buf:
|
const DWORD rc = GetEnvironmentVariableA(key, val, buflen); |
This ternary seems to be backward:
|
return ((rc > 0) && (rc < buflen)) ? NULL : buf; |
It should be:
return ((rc > 0) && (rc < buflen)) ? buf : NULL;
SIGPIPE does not seem to be supported on Windows, so those 2 lines don't compile:
|
signal(SIGPIPE, SIG_IGN); |
|
signal(SIGPIPE, SIG_DFL); |
Hello,
First thanks for your work. We are using it for Steam integration with our project.
I just wanted to report back to you some issues we found in the Windows part of the code.
This line won't compile, val should be buf:
steamshim/steamshim_child.c
Line 72 in c49d0df
This ternary seems to be backward:
steamshim/steamshim_child.c
Line 74 in c49d0df
It should be:
return ((rc > 0) && (rc < buflen)) ? buf : NULL;SIGPIPE does not seem to be supported on Windows, so those 2 lines don't compile:
steamshim/steamshim_child.c
Line 188 in c49d0df
steamshim/steamshim_child.c
Line 208 in c49d0df