mirror of
https://github.com/aaru-dps/fstester.git
synced 2025-12-16 19:24:39 +00:00
Move include files to folder.
This commit is contained in:
@@ -11,7 +11,7 @@ AllowAllParametersOfDeclarationOnNextLine: false
|
|||||||
AllowShortBlocksOnASingleLine: true
|
AllowShortBlocksOnASingleLine: true
|
||||||
AllowShortCaseLabelsOnASingleLine: true
|
AllowShortCaseLabelsOnASingleLine: true
|
||||||
AllowShortFunctionsOnASingleLine: All
|
AllowShortFunctionsOnASingleLine: All
|
||||||
AllowShortIfStatementsOnASingleLine: true
|
AllowShortIfStatementsOnASingleLine: Always
|
||||||
AllowShortLoopsOnASingleLine: true
|
AllowShortLoopsOnASingleLine: true
|
||||||
AlwaysBreakAfterDefinitionReturnType: None
|
AlwaysBreakAfterDefinitionReturnType: None
|
||||||
AlwaysBreakAfterReturnType: None
|
AlwaysBreakAfterReturnType: None
|
||||||
@@ -58,14 +58,21 @@ ForEachMacros:
|
|||||||
- BOOST_FOREACH
|
- BOOST_FOREACH
|
||||||
IncludeBlocks: Regroup
|
IncludeBlocks: Regroup
|
||||||
IncludeCategories:
|
IncludeCategories:
|
||||||
- Regex: '<[[:alnum:].]+>'
|
- Regex: '^(<winsock2.h>)'
|
||||||
Priority: -1
|
Priority: -3
|
||||||
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
|
SortPriority: -4
|
||||||
Priority: 2
|
- Regex: '^(<windows.h>)'
|
||||||
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
|
Priority: -3
|
||||||
Priority: 3
|
SortPriority: -3
|
||||||
|
- Regex: '^(<.*)'
|
||||||
|
Priority: -2
|
||||||
|
SortPriority: -2
|
||||||
|
- Regex: '^("(win32|windows))'
|
||||||
|
Priority: 1
|
||||||
|
SortPriority: -1
|
||||||
- Regex: '.*'
|
- Regex: '.*'
|
||||||
Priority: 1
|
Priority: 1
|
||||||
|
SortPriority: 1
|
||||||
IncludeIsMainRegex: '(Test)?$'
|
IncludeIsMainRegex: '(Test)?$'
|
||||||
IndentCaseLabels: true
|
IndentCaseLabels: true
|
||||||
IndentPPDirectives: None
|
IndentPPDirectives: None
|
||||||
@@ -88,7 +95,7 @@ PenaltyBreakFirstLessLess: 120
|
|||||||
PenaltyBreakString: 1000
|
PenaltyBreakString: 1000
|
||||||
PenaltyExcessCharacter: 1000000
|
PenaltyExcessCharacter: 1000000
|
||||||
PenaltyReturnTypeOnItsOwnLine: 60
|
PenaltyReturnTypeOnItsOwnLine: 60
|
||||||
PointerAlignment: Right
|
PointerAlignment: Left
|
||||||
ReflowComments: true
|
ReflowComments: true
|
||||||
SortIncludes: true
|
SortIncludes: true
|
||||||
SortUsingDeclarations: true
|
SortUsingDeclarations: true
|
||||||
|
|||||||
@@ -3,4 +3,4 @@ project(setter C)
|
|||||||
|
|
||||||
set(CMAKE_C_STANDARD 90)
|
set(CMAKE_C_STANDARD 90)
|
||||||
|
|
||||||
add_executable(setter src/consts.h src/defs.h src/main.h src/dosos2.h src/os2_16.h src/os2_32.h src/main.c src/dos.c src/os2_16.c src/os2_32.c src/win32.c src/win32.h src/unix/unix.c src/macos.c src/macos.h src/unix/unix.h src/linux/linux.c src/linux/linux.h src/netware.c src/netware.h)
|
add_executable(setter src/include/consts.h src/include/defs.h src/main.h src/dosos2.h src/os2_16.h src/os2_32.h src/main.c src/dos.c src/os2_16.c src/os2_32.c src/win32.c src/win32.h src/unix/unix.c src/macos.c src/macos.h src/unix/unix.h src/linux/linux.c src/linux/linux.h src/netware.c src/netware.h)
|
||||||
@@ -42,9 +42,9 @@ Copyright (C) 2011-2021 Natalia Portillo
|
|||||||
|
|
||||||
#include "dos.h"
|
#include "dos.h"
|
||||||
|
|
||||||
#include "consts.h"
|
|
||||||
#include "defs.h"
|
|
||||||
#include "dosos2.h"
|
#include "dosos2.h"
|
||||||
|
#include "include/consts.h"
|
||||||
|
#include "include/defs.h"
|
||||||
|
|
||||||
void GetOsInfo()
|
void GetOsInfo()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ Copyright (C) 2011-2021 Natalia Portillo
|
|||||||
|
|
||||||
#if defined(__linux__) || defined(__LINUX__) || defined(__gnu_linux)
|
#if defined(__linux__) || defined(__LINUX__) || defined(__gnu_linux)
|
||||||
|
|
||||||
#include "../consts.h"
|
#include "../include/consts.h"
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|||||||
@@ -31,11 +31,6 @@ Copyright (C) 2011-2021 Natalia Portillo
|
|||||||
|
|
||||||
#if defined(macintosh)
|
#if defined(macintosh)
|
||||||
|
|
||||||
#include "macos.h"
|
|
||||||
|
|
||||||
#include "consts.h"
|
|
||||||
#include "defs.h"
|
|
||||||
|
|
||||||
#include <Aliases.h>
|
#include <Aliases.h>
|
||||||
#include <FileTypesAndCreators.h>
|
#include <FileTypesAndCreators.h>
|
||||||
#include <Files.h>
|
#include <Files.h>
|
||||||
@@ -48,6 +43,11 @@ Copyright (C) 2011-2021 Natalia Portillo
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#include "macos.h"
|
||||||
|
|
||||||
|
#include "include/consts.h"
|
||||||
|
#include "include/defs.h"
|
||||||
|
|
||||||
void GetOsInfo()
|
void GetOsInfo()
|
||||||
{
|
{
|
||||||
int32_t gestaltResponse;
|
int32_t gestaltResponse;
|
||||||
@@ -836,9 +836,13 @@ void FileAttributes(const char *path)
|
|||||||
printf("\tFile has all flags bits set: name = \"%s\", rc = %d, wRc = %d, cRc = %d\n", "ALL", rc, wRc, cRc);
|
printf("\tFile has all flags bits set: name = \"%s\", rc = %d, wRc = %d, cRc = %d\n", "ALL", rc, wRc, cRc);
|
||||||
}
|
}
|
||||||
|
|
||||||
void FilePermissions(const char *path) { /* Do nothing, not supported by target operating system */ }
|
void FilePermissions(const char* path)
|
||||||
|
{ /* Do nothing, not supported by target operating system */
|
||||||
|
}
|
||||||
|
|
||||||
void ExtendedAttributes(const char *path) { /* Do nothing, not supported by target operating system */ }
|
void ExtendedAttributes(const char* path)
|
||||||
|
{ /* Do nothing, not supported by target operating system */
|
||||||
|
}
|
||||||
|
|
||||||
static OSErr SaveResourceToNewFile(int16_t vRefNum,
|
static OSErr SaveResourceToNewFile(int16_t vRefNum,
|
||||||
int32_t dirID,
|
int32_t dirID,
|
||||||
@@ -1935,7 +1939,9 @@ void Fragmentation(const char *path, size_t clusterSize)
|
|||||||
cRc);
|
cRc);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Sparse(const char *path) { /* Do nothing, not supported by target operating system */ }
|
void Sparse(const char* path)
|
||||||
|
{ /* Do nothing, not supported by target operating system */
|
||||||
|
}
|
||||||
|
|
||||||
static pascal OSErr
|
static pascal OSErr
|
||||||
|
|
||||||
|
|||||||
@@ -29,12 +29,13 @@ Contains global definitions
|
|||||||
Copyright (C) 2011-2021 Natalia Portillo
|
Copyright (C) 2011-2021 Natalia Portillo
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#include "main.h"
|
|
||||||
#include "defs.h"
|
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
#include "include/defs.h"
|
||||||
|
|
||||||
#if defined(macintosh)
|
#if defined(macintosh)
|
||||||
#include <SIOUX.h>
|
#include <SIOUX.h>
|
||||||
#include <console.h>
|
#include <console.h>
|
||||||
|
|||||||
@@ -33,8 +33,8 @@ Copyright (C) 2011-2021 Natalia Portillo
|
|||||||
|
|
||||||
#include "netware.h"
|
#include "netware.h"
|
||||||
|
|
||||||
#include "consts.h"
|
#include "include/consts.h"
|
||||||
#include "defs.h"
|
#include "include/defs.h"
|
||||||
|
|
||||||
void GetOsInfo()
|
void GetOsInfo()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -42,9 +42,9 @@ Copyright (C) 2011-2021 Natalia Portillo
|
|||||||
|
|
||||||
#include "os2_16.h"
|
#include "os2_16.h"
|
||||||
|
|
||||||
#include "consts.h"
|
|
||||||
#include "defs.h"
|
|
||||||
#include "dosos2.h"
|
#include "dosos2.h"
|
||||||
|
#include "include/consts.h"
|
||||||
|
#include "include/defs.h"
|
||||||
|
|
||||||
void GetOsInfo()
|
void GetOsInfo()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -40,9 +40,9 @@ Copyright (C) 2011-2021 Natalia Portillo
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "consts.h"
|
|
||||||
#include "defs.h"
|
|
||||||
#include "dosos2.h"
|
#include "dosos2.h"
|
||||||
|
#include "include/consts.h"
|
||||||
|
#include "include/defs.h"
|
||||||
#include "os2_16.h"
|
#include "os2_16.h"
|
||||||
|
|
||||||
void GetOsInfo()
|
void GetOsInfo()
|
||||||
@@ -74,8 +74,7 @@ void GetOsInfo()
|
|||||||
|
|
||||||
printf("OS information:\n");
|
printf("OS information:\n");
|
||||||
|
|
||||||
if(aulBuffer[2] > 0x20)
|
if(aulBuffer[2] > 0x20) printf("\tRunning under OS/2 %d.%d revision %c.\n", MajorVer, MinorVer, aulBuffer[2]);
|
||||||
printf("\tRunning under OS/2 %d.%d revision %c.\n", MajorVer, MinorVer, aulBuffer[2]);
|
|
||||||
else
|
else
|
||||||
printf("\tRunning under OS/2 %d.%d\n", MajorVer, MinorVer);
|
printf("\tRunning under OS/2 %d.%d\n", MajorVer, MinorVer);
|
||||||
|
|
||||||
|
|||||||
@@ -36,20 +36,19 @@ Copyright (C) 2011-2021 Natalia Portillo
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/utsname.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <utime.h>
|
#include <utime.h>
|
||||||
|
|
||||||
#include "unix.h"
|
#include "unix.h"
|
||||||
|
|
||||||
#include "../consts.h"
|
#include "../include/consts.h"
|
||||||
#include "../defs.h"
|
#include "../include/defs.h"
|
||||||
#include "../linux/linux.h"
|
#include "../linux/linux.h"
|
||||||
|
|
||||||
#include <sys/stat.h>
|
|
||||||
#include <sys/statfs.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/utsname.h>
|
|
||||||
|
|
||||||
void GetOsInfo()
|
void GetOsInfo()
|
||||||
{
|
{
|
||||||
struct utsname buf;
|
struct utsname buf;
|
||||||
|
|||||||
@@ -36,15 +36,16 @@ Copyright (C) 2011-2021 Natalia Portillo
|
|||||||
|
|
||||||
#define _CRT_SECURE_NO_WARNINGS 1
|
#define _CRT_SECURE_NO_WARNINGS 1
|
||||||
|
|
||||||
|
#include <windows.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <windows.h>
|
|
||||||
|
|
||||||
#include "win32.h"
|
#include "win32.h"
|
||||||
|
|
||||||
#include "consts.h"
|
#include "include/consts.h"
|
||||||
#include "defs.h"
|
#include "include/defs.h"
|
||||||
|
|
||||||
static DWORD dwMaxNameSize = MAX_PATH + 1;
|
static DWORD dwMaxNameSize = MAX_PATH + 1;
|
||||||
static DWORD dwFilePermissions = GENERIC_READ | GENERIC_WRITE;
|
static DWORD dwFilePermissions = GENERIC_READ | GENERIC_WRITE;
|
||||||
@@ -115,8 +116,7 @@ void GetOsInfo()
|
|||||||
{
|
{
|
||||||
if(verInfo.dwMinorVersion == 10)
|
if(verInfo.dwMinorVersion == 10)
|
||||||
{
|
{
|
||||||
if(verInfo.dwBuildNumber == 2222)
|
if(verInfo.dwBuildNumber == 2222) printf("\tRunning under Windows 98 SE");
|
||||||
printf("\tRunning under Windows 98 SE");
|
|
||||||
else
|
else
|
||||||
printf("\tRunning under Windows 98");
|
printf("\tRunning under Windows 98");
|
||||||
}
|
}
|
||||||
@@ -556,8 +556,7 @@ void FileAttributes(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(h, (LPCVOID)noAttributeText, strlen(noAttributeText), &dwNumberOfBytesWritten, NULL);
|
ret = WriteFile(h, (LPCVOID)noAttributeText, strlen(noAttributeText), &dwNumberOfBytesWritten, NULL);
|
||||||
@@ -572,8 +571,7 @@ void FileAttributes(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret =
|
ret =
|
||||||
@@ -589,8 +587,7 @@ void FileAttributes(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(h, (LPCVOID)hiddenAttributeText, strlen(hiddenAttributeText), &dwNumberOfBytesWritten, NULL);
|
ret = WriteFile(h, (LPCVOID)hiddenAttributeText, strlen(hiddenAttributeText), &dwNumberOfBytesWritten, NULL);
|
||||||
@@ -605,8 +602,7 @@ void FileAttributes(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(h, (LPCVOID)offlineAttributeText, strlen(offlineAttributeText), &dwNumberOfBytesWritten, NULL);
|
ret = WriteFile(h, (LPCVOID)offlineAttributeText, strlen(offlineAttributeText), &dwNumberOfBytesWritten, NULL);
|
||||||
@@ -621,8 +617,7 @@ void FileAttributes(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret =
|
ret =
|
||||||
@@ -639,8 +634,7 @@ void FileAttributes(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(h, (LPCVOID)systemAttributeText, strlen(systemAttributeText), &dwNumberOfBytesWritten, NULL);
|
ret = WriteFile(h, (LPCVOID)systemAttributeText, strlen(systemAttributeText), &dwNumberOfBytesWritten, NULL);
|
||||||
@@ -655,8 +649,7 @@ void FileAttributes(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(
|
ret = WriteFile(
|
||||||
@@ -673,8 +666,7 @@ void FileAttributes(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret =
|
ret =
|
||||||
@@ -697,8 +689,7 @@ void FileAttributes(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret =
|
ret =
|
||||||
@@ -721,8 +712,7 @@ void FileAttributes(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret =
|
ret =
|
||||||
@@ -746,8 +736,7 @@ void FileAttributes(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret =
|
ret =
|
||||||
@@ -770,8 +759,7 @@ void FileAttributes(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret =
|
ret =
|
||||||
@@ -795,8 +783,7 @@ void FileAttributes(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(h, (LPCVOID)offlineAttributeText, strlen(offlineAttributeText), &dwNumberOfBytesWritten, NULL);
|
ret = WriteFile(h, (LPCVOID)offlineAttributeText, strlen(offlineAttributeText), &dwNumberOfBytesWritten, NULL);
|
||||||
@@ -818,8 +805,7 @@ void FileAttributes(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret =
|
ret =
|
||||||
@@ -842,8 +828,7 @@ void FileAttributes(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(h, (LPCVOID)systemAttributeText, strlen(systemAttributeText), &dwNumberOfBytesWritten, NULL);
|
ret = WriteFile(h, (LPCVOID)systemAttributeText, strlen(systemAttributeText), &dwNumberOfBytesWritten, NULL);
|
||||||
@@ -865,8 +850,7 @@ void FileAttributes(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(
|
ret = WriteFile(
|
||||||
@@ -886,8 +870,7 @@ void FileAttributes(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret =
|
ret =
|
||||||
@@ -910,8 +893,7 @@ void FileAttributes(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(h, (LPCVOID)systemAttributeText, strlen(systemAttributeText), &dwNumberOfBytesWritten, NULL);
|
ret = WriteFile(h, (LPCVOID)systemAttributeText, strlen(systemAttributeText), &dwNumberOfBytesWritten, NULL);
|
||||||
@@ -933,8 +915,7 @@ void FileAttributes(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(
|
ret = WriteFile(
|
||||||
@@ -957,8 +938,7 @@ void FileAttributes(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(h, (LPCVOID)systemAttributeText, strlen(systemAttributeText), &dwNumberOfBytesWritten, NULL);
|
ret = WriteFile(h, (LPCVOID)systemAttributeText, strlen(systemAttributeText), &dwNumberOfBytesWritten, NULL);
|
||||||
@@ -981,8 +961,7 @@ void FileAttributes(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(
|
ret = WriteFile(
|
||||||
@@ -1006,8 +985,7 @@ void FileAttributes(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(h, (LPCVOID)systemAttributeText, strlen(systemAttributeText), &dwNumberOfBytesWritten, NULL);
|
ret = WriteFile(h, (LPCVOID)systemAttributeText, strlen(systemAttributeText), &dwNumberOfBytesWritten, NULL);
|
||||||
@@ -1032,8 +1010,7 @@ void FileAttributes(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(h, (LPCVOID)offlineAttributeText, strlen(offlineAttributeText), &dwNumberOfBytesWritten, NULL);
|
ret = WriteFile(h, (LPCVOID)offlineAttributeText, strlen(offlineAttributeText), &dwNumberOfBytesWritten, NULL);
|
||||||
@@ -1065,8 +1042,7 @@ void FileAttributes(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret =
|
ret =
|
||||||
@@ -1097,8 +1073,7 @@ void FileAttributes(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(h, (LPCVOID)systemAttributeText, strlen(systemAttributeText), &dwNumberOfBytesWritten, NULL);
|
ret = WriteFile(h, (LPCVOID)systemAttributeText, strlen(systemAttributeText), &dwNumberOfBytesWritten, NULL);
|
||||||
@@ -1128,8 +1103,7 @@ void FileAttributes(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(
|
ret = WriteFile(
|
||||||
@@ -1160,8 +1134,7 @@ void FileAttributes(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret =
|
ret =
|
||||||
@@ -1194,8 +1167,7 @@ void FileAttributes(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(h, (LPCVOID)systemAttributeText, strlen(systemAttributeText), &dwNumberOfBytesWritten, NULL);
|
ret = WriteFile(h, (LPCVOID)systemAttributeText, strlen(systemAttributeText), &dwNumberOfBytesWritten, NULL);
|
||||||
@@ -1227,8 +1199,7 @@ void FileAttributes(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(
|
ret = WriteFile(
|
||||||
@@ -1261,8 +1232,7 @@ void FileAttributes(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(h, (LPCVOID)offlineAttributeText, strlen(offlineAttributeText), &dwNumberOfBytesWritten, NULL);
|
ret = WriteFile(h, (LPCVOID)offlineAttributeText, strlen(offlineAttributeText), &dwNumberOfBytesWritten, NULL);
|
||||||
@@ -1295,8 +1265,7 @@ void FileAttributes(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(
|
ret = WriteFile(
|
||||||
@@ -1328,8 +1297,7 @@ void FileAttributes(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(
|
ret = WriteFile(
|
||||||
@@ -1361,8 +1329,7 @@ void FileAttributes(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret =
|
ret =
|
||||||
@@ -1408,8 +1375,7 @@ void FileAttributes(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(
|
ret = WriteFile(
|
||||||
@@ -1443,8 +1409,7 @@ void FileAttributes(const char *path)
|
|||||||
aRc = 0;
|
aRc = 0;
|
||||||
eRc = 0;
|
eRc = 0;
|
||||||
|
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(
|
ret = WriteFile(
|
||||||
@@ -1474,8 +1439,7 @@ void FileAttributes(const char *path)
|
|||||||
cRc = 0;
|
cRc = 0;
|
||||||
aRc = 0;
|
aRc = 0;
|
||||||
eRc = 0;
|
eRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret =
|
ret =
|
||||||
@@ -1508,8 +1472,7 @@ void FileAttributes(const char *path)
|
|||||||
cRc = 0;
|
cRc = 0;
|
||||||
aRc = 0;
|
aRc = 0;
|
||||||
eRc = 0;
|
eRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(h, (LPCVOID)hiddenAttributeText, strlen(hiddenAttributeText), &dwNumberOfBytesWritten, NULL);
|
ret = WriteFile(h, (LPCVOID)hiddenAttributeText, strlen(hiddenAttributeText), &dwNumberOfBytesWritten, NULL);
|
||||||
@@ -1542,8 +1505,7 @@ void FileAttributes(const char *path)
|
|||||||
cRc = 0;
|
cRc = 0;
|
||||||
aRc = 0;
|
aRc = 0;
|
||||||
eRc = 0;
|
eRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(h, (LPCVOID)offlineAttributeText, strlen(offlineAttributeText), &dwNumberOfBytesWritten, NULL);
|
ret = WriteFile(h, (LPCVOID)offlineAttributeText, strlen(offlineAttributeText), &dwNumberOfBytesWritten, NULL);
|
||||||
@@ -1576,8 +1538,7 @@ void FileAttributes(const char *path)
|
|||||||
cRc = 0;
|
cRc = 0;
|
||||||
aRc = 0;
|
aRc = 0;
|
||||||
eRc = 0;
|
eRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret =
|
ret =
|
||||||
@@ -1611,8 +1572,7 @@ void FileAttributes(const char *path)
|
|||||||
cRc = 0;
|
cRc = 0;
|
||||||
aRc = 0;
|
aRc = 0;
|
||||||
eRc = 0;
|
eRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(
|
ret = WriteFile(
|
||||||
@@ -1645,8 +1605,7 @@ void FileAttributes(const char *path)
|
|||||||
cRc = 0;
|
cRc = 0;
|
||||||
aRc = 0;
|
aRc = 0;
|
||||||
eRc = 0;
|
eRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(h, (LPCVOID)hiddenAttributeText, strlen(hiddenAttributeText), &dwNumberOfBytesWritten, NULL);
|
ret = WriteFile(h, (LPCVOID)hiddenAttributeText, strlen(hiddenAttributeText), &dwNumberOfBytesWritten, NULL);
|
||||||
@@ -1683,8 +1642,7 @@ void FileAttributes(const char *path)
|
|||||||
cRc = 0;
|
cRc = 0;
|
||||||
aRc = 0;
|
aRc = 0;
|
||||||
eRc = 0;
|
eRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(h, (LPCVOID)offlineAttributeText, strlen(offlineAttributeText), &dwNumberOfBytesWritten, NULL);
|
ret = WriteFile(h, (LPCVOID)offlineAttributeText, strlen(offlineAttributeText), &dwNumberOfBytesWritten, NULL);
|
||||||
@@ -1721,8 +1679,7 @@ void FileAttributes(const char *path)
|
|||||||
cRc = 0;
|
cRc = 0;
|
||||||
aRc = 0;
|
aRc = 0;
|
||||||
eRc = 0;
|
eRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret =
|
ret =
|
||||||
@@ -1760,8 +1717,7 @@ void FileAttributes(const char *path)
|
|||||||
cRc = 0;
|
cRc = 0;
|
||||||
aRc = 0;
|
aRc = 0;
|
||||||
eRc = 0;
|
eRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(
|
ret = WriteFile(
|
||||||
@@ -1799,8 +1755,7 @@ void FileAttributes(const char *path)
|
|||||||
cRc = 0;
|
cRc = 0;
|
||||||
aRc = 0;
|
aRc = 0;
|
||||||
eRc = 0;
|
eRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(h, (LPCVOID)encryptedAttributeText, strlen(systemAttributeText), &dwNumberOfBytesWritten, NULL);
|
ret = WriteFile(h, (LPCVOID)encryptedAttributeText, strlen(systemAttributeText), &dwNumberOfBytesWritten, NULL);
|
||||||
@@ -1836,8 +1791,7 @@ void FileAttributes(const char *path)
|
|||||||
cRc = 0;
|
cRc = 0;
|
||||||
aRc = 0;
|
aRc = 0;
|
||||||
eRc = 0;
|
eRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(
|
ret = WriteFile(
|
||||||
@@ -1875,8 +1829,7 @@ void FileAttributes(const char *path)
|
|||||||
cRc = 0;
|
cRc = 0;
|
||||||
aRc = 0;
|
aRc = 0;
|
||||||
eRc = 0;
|
eRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(h, (LPCVOID)offlineAttributeText, strlen(offlineAttributeText), &dwNumberOfBytesWritten, NULL);
|
ret = WriteFile(h, (LPCVOID)offlineAttributeText, strlen(offlineAttributeText), &dwNumberOfBytesWritten, NULL);
|
||||||
@@ -1915,8 +1868,7 @@ void FileAttributes(const char *path)
|
|||||||
cRc = 0;
|
cRc = 0;
|
||||||
aRc = 0;
|
aRc = 0;
|
||||||
eRc = 0;
|
eRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret =
|
ret =
|
||||||
@@ -1955,8 +1907,7 @@ void FileAttributes(const char *path)
|
|||||||
cRc = 0;
|
cRc = 0;
|
||||||
aRc = 0;
|
aRc = 0;
|
||||||
eRc = 0;
|
eRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(
|
ret = WriteFile(
|
||||||
@@ -1996,8 +1947,7 @@ void FileAttributes(const char *path)
|
|||||||
cRc = 0;
|
cRc = 0;
|
||||||
aRc = 0;
|
aRc = 0;
|
||||||
eRc = 0;
|
eRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret =
|
ret =
|
||||||
@@ -2036,8 +1986,7 @@ void FileAttributes(const char *path)
|
|||||||
cRc = 0;
|
cRc = 0;
|
||||||
aRc = 0;
|
aRc = 0;
|
||||||
eRc = 0;
|
eRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(
|
ret = WriteFile(
|
||||||
@@ -2077,8 +2026,7 @@ void FileAttributes(const char *path)
|
|||||||
cRc = 0;
|
cRc = 0;
|
||||||
aRc = 0;
|
aRc = 0;
|
||||||
eRc = 0;
|
eRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(
|
ret = WriteFile(
|
||||||
@@ -2119,8 +2067,7 @@ void FileAttributes(const char *path)
|
|||||||
cRc = 0;
|
cRc = 0;
|
||||||
aRc = 0;
|
aRc = 0;
|
||||||
eRc = 0;
|
eRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret =
|
ret =
|
||||||
@@ -2162,8 +2109,7 @@ void FileAttributes(const char *path)
|
|||||||
cRc = 0;
|
cRc = 0;
|
||||||
aRc = 0;
|
aRc = 0;
|
||||||
eRc = 0;
|
eRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(
|
ret = WriteFile(
|
||||||
@@ -2340,15 +2286,13 @@ void ExtendedAttributes(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
memset(message, 0, 300);
|
memset(message, 0, 300);
|
||||||
sprintf(message, "This files has an optional .COMMENTS EA\n");
|
sprintf(message, "This files has an optional .COMMENTS EA\n");
|
||||||
ret = WriteFile(h, message, strlen(message), &dwNumberOfBytesWritten, NULL);
|
ret = WriteFile(h, message, strlen(message), &dwNumberOfBytesWritten, NULL);
|
||||||
if(!ret)
|
if(!ret) wRc = GetLastError();
|
||||||
wRc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
eaData = malloc(sizeof(CommentsEA));
|
eaData = malloc(sizeof(CommentsEA));
|
||||||
@@ -2404,15 +2348,13 @@ void ExtendedAttributes(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
memset(message, 0, 300);
|
memset(message, 0, 300);
|
||||||
sprintf(message, "This files has a critical .COMMENTS EA\n");
|
sprintf(message, "This files has a critical .COMMENTS EA\n");
|
||||||
ret = WriteFile(h, message, strlen(message), &dwNumberOfBytesWritten, NULL);
|
ret = WriteFile(h, message, strlen(message), &dwNumberOfBytesWritten, NULL);
|
||||||
if(!ret)
|
if(!ret) wRc = GetLastError();
|
||||||
wRc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
eaData = malloc(sizeof(CommentsEACritical));
|
eaData = malloc(sizeof(CommentsEACritical));
|
||||||
@@ -2468,15 +2410,13 @@ void ExtendedAttributes(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
memset(message, 0, 300);
|
memset(message, 0, 300);
|
||||||
sprintf(message, "This files has an optional .ICON EA\n");
|
sprintf(message, "This files has an optional .ICON EA\n");
|
||||||
ret = WriteFile(h, message, strlen(message), &dwNumberOfBytesWritten, NULL);
|
ret = WriteFile(h, message, strlen(message), &dwNumberOfBytesWritten, NULL);
|
||||||
if(!ret)
|
if(!ret) wRc = GetLastError();
|
||||||
wRc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
eaData = malloc(sizeof(IconEA));
|
eaData = malloc(sizeof(IconEA));
|
||||||
@@ -2599,8 +2539,7 @@ void ResourceFork(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(h, (LPCVOID)tinyAdsText, strlen(tinyAdsText), &dwNumberOfBytesWritten, NULL);
|
ret = WriteFile(h, (LPCVOID)tinyAdsText, strlen(tinyAdsText), &dwNumberOfBytesWritten, NULL);
|
||||||
@@ -2620,8 +2559,7 @@ void ResourceFork(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(h, (LPCVOID)smallAdsText, strlen(smallAdsText), &dwNumberOfBytesWritten, NULL);
|
ret = WriteFile(h, (LPCVOID)smallAdsText, strlen(smallAdsText), &dwNumberOfBytesWritten, NULL);
|
||||||
@@ -2651,8 +2589,7 @@ void ResourceFork(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(h, (LPCVOID)mediumAdsText, strlen(mediumAdsText), &dwNumberOfBytesWritten, NULL);
|
ret = WriteFile(h, (LPCVOID)mediumAdsText, strlen(mediumAdsText), &dwNumberOfBytesWritten, NULL);
|
||||||
@@ -2683,8 +2620,7 @@ void ResourceFork(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(h, (LPCVOID)bigAdsText, strlen(bigAdsText), &dwNumberOfBytesWritten, NULL);
|
ret = WriteFile(h, (LPCVOID)bigAdsText, strlen(bigAdsText), &dwNumberOfBytesWritten, NULL);
|
||||||
@@ -2713,8 +2649,7 @@ void ResourceFork(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(h, (LPCVOID)tinyAdsText, strlen(tinyAdsText), &dwNumberOfBytesWritten, NULL);
|
ret = WriteFile(h, (LPCVOID)tinyAdsText, strlen(tinyAdsText), &dwNumberOfBytesWritten, NULL);
|
||||||
@@ -2734,8 +2669,7 @@ void ResourceFork(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(h, (LPCVOID)smallAdsText, strlen(smallAdsText), &dwNumberOfBytesWritten, NULL);
|
ret = WriteFile(h, (LPCVOID)smallAdsText, strlen(smallAdsText), &dwNumberOfBytesWritten, NULL);
|
||||||
@@ -2766,8 +2700,7 @@ void ResourceFork(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(h, (LPCVOID)mediumAdsText, strlen(mediumAdsText), &dwNumberOfBytesWritten, NULL);
|
ret = WriteFile(h, (LPCVOID)mediumAdsText, strlen(mediumAdsText), &dwNumberOfBytesWritten, NULL);
|
||||||
@@ -2799,8 +2732,7 @@ void ResourceFork(const char *path)
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = WriteFile(h, (LPCVOID)bigAdsText, strlen(bigAdsText), &dwNumberOfBytesWritten, NULL);
|
ret = WriteFile(h, (LPCVOID)bigAdsText, strlen(bigAdsText), &dwNumberOfBytesWritten, NULL);
|
||||||
@@ -2888,8 +2820,7 @@ void Filenames(const char *path)
|
|||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
|
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
memset(message, 0, 300);
|
memset(message, 0, 300);
|
||||||
@@ -2967,8 +2898,7 @@ void Timestamps(const char *path)
|
|||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
tRc = 0;
|
tRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
memset(message, 0, 300);
|
memset(message, 0, 300);
|
||||||
@@ -2992,8 +2922,7 @@ void Timestamps(const char *path)
|
|||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
tRc = 0;
|
tRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
memset(message, 0, 300);
|
memset(message, 0, 300);
|
||||||
@@ -3017,8 +2946,7 @@ void Timestamps(const char *path)
|
|||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
tRc = 0;
|
tRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
memset(message, 0, 300);
|
memset(message, 0, 300);
|
||||||
@@ -3042,8 +2970,7 @@ void Timestamps(const char *path)
|
|||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
tRc = 0;
|
tRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
memset(message, 0, 300);
|
memset(message, 0, 300);
|
||||||
@@ -3067,8 +2994,7 @@ void Timestamps(const char *path)
|
|||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
tRc = 0;
|
tRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
memset(message, 0, 300);
|
memset(message, 0, 300);
|
||||||
@@ -3092,8 +3018,7 @@ void Timestamps(const char *path)
|
|||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
tRc = 0;
|
tRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
memset(message, 0, 300);
|
memset(message, 0, 300);
|
||||||
@@ -3117,8 +3042,7 @@ void Timestamps(const char *path)
|
|||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
tRc = 0;
|
tRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
memset(message, 0, 300);
|
memset(message, 0, 300);
|
||||||
@@ -3142,8 +3066,7 @@ void Timestamps(const char *path)
|
|||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
tRc = 0;
|
tRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
memset(message, 0, 300);
|
memset(message, 0, 300);
|
||||||
@@ -3167,8 +3090,7 @@ void Timestamps(const char *path)
|
|||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
tRc = 0;
|
tRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
memset(message, 0, 300);
|
memset(message, 0, 300);
|
||||||
@@ -3192,8 +3114,7 @@ void Timestamps(const char *path)
|
|||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
tRc = 0;
|
tRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
memset(message, 0, 300);
|
memset(message, 0, 300);
|
||||||
@@ -3217,8 +3138,7 @@ void Timestamps(const char *path)
|
|||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
tRc = 0;
|
tRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
memset(message, 0, 300);
|
memset(message, 0, 300);
|
||||||
@@ -3242,8 +3162,7 @@ void Timestamps(const char *path)
|
|||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
tRc = 0;
|
tRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
memset(message, 0, 300);
|
memset(message, 0, 300);
|
||||||
@@ -3390,8 +3309,7 @@ void Fragmentation(const char *path, size_t clusterSize)
|
|||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
tRc = 0;
|
tRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
buffer = malloc(halfCluster);
|
buffer = malloc(halfCluster);
|
||||||
@@ -3414,8 +3332,7 @@ void Fragmentation(const char *path, size_t clusterSize)
|
|||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
tRc = 0;
|
tRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
buffer = malloc(quarterCluster);
|
buffer = malloc(quarterCluster);
|
||||||
@@ -3439,8 +3356,7 @@ void Fragmentation(const char *path, size_t clusterSize)
|
|||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
tRc = 0;
|
tRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
buffer = malloc(twoCluster);
|
buffer = malloc(twoCluster);
|
||||||
@@ -3463,8 +3379,7 @@ void Fragmentation(const char *path, size_t clusterSize)
|
|||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
tRc = 0;
|
tRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
buffer = malloc(threeQuartersCluster);
|
buffer = malloc(threeQuartersCluster);
|
||||||
@@ -3492,8 +3407,7 @@ void Fragmentation(const char *path, size_t clusterSize)
|
|||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
tRc = 0;
|
tRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
buffer = malloc(twoAndThreeQuartCluster);
|
buffer = malloc(twoAndThreeQuartCluster);
|
||||||
@@ -3521,8 +3435,7 @@ void Fragmentation(const char *path, size_t clusterSize)
|
|||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
tRc = 0;
|
tRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
buffer = malloc(twoCluster);
|
buffer = malloc(twoCluster);
|
||||||
@@ -3545,8 +3458,7 @@ void Fragmentation(const char *path, size_t clusterSize)
|
|||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
tRc = 0;
|
tRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
buffer = malloc(twoCluster);
|
buffer = malloc(twoCluster);
|
||||||
@@ -3569,8 +3481,7 @@ void Fragmentation(const char *path, size_t clusterSize)
|
|||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
tRc = 0;
|
tRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
buffer = malloc(twoCluster);
|
buffer = malloc(twoCluster);
|
||||||
@@ -3597,8 +3508,7 @@ void Fragmentation(const char *path, size_t clusterSize)
|
|||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
tRc = 0;
|
tRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
buffer = malloc(threeQuartersCluster);
|
buffer = malloc(threeQuartersCluster);
|
||||||
@@ -3633,8 +3543,7 @@ void Fragmentation(const char *path, size_t clusterSize)
|
|||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
tRc = 0;
|
tRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
buffer = malloc(twoAndThreeQuartCluster);
|
buffer = malloc(twoAndThreeQuartCluster);
|
||||||
@@ -3772,8 +3681,7 @@ void Sparse(const char *path)
|
|||||||
cRc = 0;
|
cRc = 0;
|
||||||
sRc = 0;
|
sRc = 0;
|
||||||
zRc = 0;
|
zRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
buffer = malloc(4096 * 3);
|
buffer = malloc(4096 * 3);
|
||||||
@@ -3848,8 +3756,7 @@ void Sparse(const char *path)
|
|||||||
cRc = 0;
|
cRc = 0;
|
||||||
sRc = 0;
|
sRc = 0;
|
||||||
zRc = 0;
|
zRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
buffer = malloc(4096 * 30);
|
buffer = malloc(4096 * 30);
|
||||||
@@ -4025,8 +3932,7 @@ void Links(const char *path)
|
|||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
lRc = 0;
|
lRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
memset(message, 0, 300);
|
memset(message, 0, 300);
|
||||||
@@ -4067,8 +3973,7 @@ void Links(const char *path)
|
|||||||
wRc = 0;
|
wRc = 0;
|
||||||
cRc = 0;
|
cRc = 0;
|
||||||
lRc = 0;
|
lRc = 0;
|
||||||
if(h == INVALID_HANDLE_VALUE)
|
if(h == INVALID_HANDLE_VALUE) rc = GetLastError();
|
||||||
rc = GetLastError();
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
memset(message, 0, 300);
|
memset(message, 0, 300);
|
||||||
|
|||||||
Reference in New Issue
Block a user