Skip to content

Commit 2147b7e

Browse files
committed
samples: Change "reason" to "error code" in winapi samples
1 parent 39c32b1 commit 2147b7e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

samples/winapi_filefind/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ int main(void)
1515
if (!ret) {
1616
// There was an error. We can get more information about an error from WinAPI code using GetLastError()
1717
DWORD mountError = GetLastError();
18-
debugPrint("Failed to mount C: drive! Reason: %x\n", mountError);
18+
debugPrint("Failed to mount C: drive! Error code: %x\n", mountError);
1919
goto sleepForever;
2020
}
2121

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

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

0 commit comments

Comments
 (0)