Skip to content

Commit

Permalink
samples: Change "reason" to "error code" in winapi samples
Browse files Browse the repository at this point in the history
  • Loading branch information
kosmas12 committed Apr 11, 2021
1 parent 39c32b1 commit 2147b7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions samples/winapi_filefind/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ int main(void)
if (!ret) {
// There was an error. We can get more information about an error from WinAPI code using GetLastError()
DWORD mountError = GetLastError();
debugPrint("Failed to mount C: drive! Reason: %x\n", mountError);
debugPrint("Failed to mount C: drive! Error code: %x\n", mountError);
goto sleepForever;
}

Expand All @@ -30,7 +30,7 @@ int main(void)
DWORD findFileError;
if (hFind == INVALID_HANDLE_VALUE) {
findFileError = GetLastError();
debugPrint("FindFirstHandle() failed! Reason: %x\n", findFileError);
debugPrint("FindFirstHandle() failed! Error code: %x\n", findFileError);
goto cleanup;
}

Expand Down Expand Up @@ -59,7 +59,7 @@ int main(void)
// If there was an error while unmounting
if (!ret) {
DWORD unmountError = GetLastError();
debugPrint("Couldn't unmount C: drive! Reason: %x", unmountError);
debugPrint("Couldn't unmount C: drive! Error code: %x", unmountError);
}
sleepForever:
while (1) {
Expand Down

0 comments on commit 2147b7e

Please sign in to comment.