summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/windows/csp/RegDll.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/windows/csp/RegDll.cpp b/src/windows/csp/RegDll.cpp
index 08ece93..66f1a96 100644
--- a/src/windows/csp/RegDll.cpp
+++ b/src/windows/csp/RegDll.cpp
@@ -140,7 +140,7 @@ getSignature(const char *cspLibrary, unsigned char **returnedSig,
return ERROR_NOT_ENOUGH_MEMORY;
}
- fd = open (sigFile, O_RDONLY);
+ fd = open (sigFile, O_RDONLY | O_BINARY);
free(sigFile);
if (fd < 0) {
return GetLastError();