mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2026-01-12 00:05:50 +08:00
Merge pull request #10 from zerotier/windows-bool-assign
Fix assignment vs comparison typo
This commit is contained in:
6
one.cpp
6
one.cpp
@@ -1278,9 +1278,9 @@ static int cli(int argc, char** argv)
|
||||
return 0;
|
||||
}
|
||||
|
||||
BOOL err = WriteFile(file, dump.str().c_str(), dump.str().size(), NULL, NULL);
|
||||
if (err = FALSE) {
|
||||
fprintf(stderr, "Error writing file");
|
||||
BOOL ok = WriteFile(file, dump.str().c_str(), dump.str().size(), NULL, NULL);
|
||||
if (ok == FALSE) {
|
||||
fprintf(stderr, "Error writing file\n");
|
||||
return 1;
|
||||
}
|
||||
CloseHandle(file);
|
||||
|
||||
Reference in New Issue
Block a user