8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 22:43:04 +01:00

Fix signed/unsigned warning

This commit is contained in:
brodsom 2003-09-15 19:26:41 +00:00
parent 3daaea2166
commit 09fc777366

View File

@ -1149,7 +1149,7 @@ void API_ROUTINE gds__trace(const TEXT * text)
DWORD bytesWritten;
SetFilePointer(trace_file_handle, 0, NULL, FILE_END);
WriteFile(trace_file_handle, buffer, p-buffer, &bytesWritten, NULL);
if (bytesWritten != p-buffer) {
if (bytesWritten != (DWORD) (p - buffer) ) {
// Handle the case when file was deleted by another process on Win9x
// On WinNT we are not going to notice that fact :(
CloseHandle(trace_file_handle);