We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Function: Initialize
Depending of the shell you are using, GetModuleFileName may returns a path beginning with "\?"1. For example:
GetModuleFileName
\\?\C:\Users\greg\Projects\
In this case, the function IsOnNetworkDrive will return 'true' and thus DWORD Initialize() will return 'OLS_DLL_DRIVER_NOT_FOUND'.
IsOnNetworkDrive
DWORD Initialize()
This happens with nushell2
I wrote a quick hack (I'm not a c expert) right before wsprintf(gDriverPath, _T("%s\\%s"), dir, gDriverFileName);:
wsprintf(gDriverPath, _T("%s\\%s"), dir, gDriverFileName);
if ((ptr = _tcsstr(dir, "\\\\?\\")) != NULL) { int l = _tcslen(dir) - 4; memmove(dir, dir + 4, l); dir[l] = '\0'; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Function: Initialize
Depending of the shell you are using,
GetModuleFileName
may returns a path beginning with "\?"1. For example:\\?\C:\Users\greg\Projects\
In this case, the function
IsOnNetworkDrive
will return 'true' and thusDWORD Initialize()
will return 'OLS_DLL_DRIVER_NOT_FOUND'.This happens with nushell2
I wrote a quick hack (I'm not a c expert) right before
wsprintf(gDriverPath, _T("%s\\%s"), dir, gDriverFileName);
:The text was updated successfully, but these errors were encountered: