svn path=/trunk/; revision=2784
NULL);
if (Status == STATUS_PENDING)
{
NULL);
if (Status == STATUS_PENDING)
{
- printf("STATUS_PENDING\n");
NtWaitForSingleObject(EventHandle, FALSE, NULL);
Status = IoStatusBlock.Status;
}
NtWaitForSingleObject(EventHandle, FALSE, NULL);
Status = IoStatusBlock.Status;
}
}
if (!NT_SUCCESS(Status) && Status != STATUS_END_OF_FILE)
{
}
if (!NT_SUCCESS(Status) && Status != STATUS_END_OF_FILE)
{
+ printf("ReadBlock() failed (Status: %lx)\n", Status);
NULL);
if (hDisk == INVALID_HANDLE_VALUE)
{
NULL);
if (hDisk == INVALID_HANDLE_VALUE)
{
- printf("CreateFile(): Invalid disk handle!");
+ printf("CreateFile(): Invalid disk handle!\n");
if (Buffer == NULL)
{
CloseHandle(hDisk);
if (Buffer == NULL)
{
CloseHandle(hDisk);
- printf("Out of memory!");
+ printf("Out of memory!\n");
return 0;
}
memset(Buffer, 0, 2048);
return 0;
}
memset(Buffer, 0, 2048);
{
CloseHandle(hDisk);
free(Buffer);
{
CloseHandle(hDisk);
free(Buffer);
- printf("SetFilePointer() failed!");
+ printf("SetFilePointer() failed!\n");
{
CloseHandle(hDisk);
free(Buffer);
{
CloseHandle(hDisk);
free(Buffer);
- printf("ReadFile() failed!");
+ printf("ReadFile() failed!\n");
{
CloseHandle(hDisk);
free(Buffer);
{
CloseHandle(hDisk);
free(Buffer);
- printf("ReadBlock() failed!");
+#if 0
+ printf("ReadBlock() failed!\n");
+#endif