Fixed indentation.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1608 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
161b4f215a
commit
66c9092910
12
disk.c
12
disk.c
@ -835,11 +835,12 @@ disk_set_information(RD_NTHANDLE handle, uint32 info_class, STREAM in, STREAM ou
|
|||||||
[MS-RDPEFS] http://msdn.microsoft.com/en-us/library/cc241305%28PROT.10%29.aspx
|
[MS-RDPEFS] http://msdn.microsoft.com/en-us/library/cc241305%28PROT.10%29.aspx
|
||||||
- 2.2.3.3.9 Server Drive Set Information Request
|
- 2.2.3.3.9 Server Drive Set Information Request
|
||||||
*/
|
*/
|
||||||
in_uint8s(in , 4); /* length of SetBuffer */
|
in_uint8s(in, 4); /* length of SetBuffer */
|
||||||
in_uint8s(in , 24); /* padding */
|
in_uint8s(in, 24); /* padding */
|
||||||
|
|
||||||
|
|
||||||
if ((pfinfo->accessmask & (FILE_DELETE_ON_CLOSE | FILE_COMPLETE_IF_OPLOCKED)))
|
if ((pfinfo->accessmask &
|
||||||
|
(FILE_DELETE_ON_CLOSE | FILE_COMPLETE_IF_OPLOCKED)))
|
||||||
{
|
{
|
||||||
/* if file exists in directory , necessary to return RD_STATUS_DIRECTORY_NOT_EMPTY with win2008
|
/* if file exists in directory , necessary to return RD_STATUS_DIRECTORY_NOT_EMPTY with win2008
|
||||||
[MS-RDPEFS] http://msdn.microsoft.com/en-us/library/cc241305%28PROT.10%29.aspx
|
[MS-RDPEFS] http://msdn.microsoft.com/en-us/library/cc241305%28PROT.10%29.aspx
|
||||||
@ -855,9 +856,10 @@ disk_set_information(RD_NTHANDLE handle, uint32 info_class, STREAM in, STREAM ou
|
|||||||
DIR *dp = opendir(pfinfo->path);
|
DIR *dp = opendir(pfinfo->path);
|
||||||
struct dirent *dir;
|
struct dirent *dir;
|
||||||
|
|
||||||
while((dir = readdir(dp)) != NULL)
|
while ((dir = readdir(dp)) != NULL)
|
||||||
{
|
{
|
||||||
if(strcmp(dir->d_name , ".") != 0 && strcmp(dir->d_name , "..") != 0)
|
if (strcmp(dir->d_name, ".") != 0
|
||||||
|
&& strcmp(dir->d_name, "..") != 0)
|
||||||
{
|
{
|
||||||
closedir(dp);
|
closedir(dp);
|
||||||
return RD_STATUS_DIRECTORY_NOT_EMPTY;
|
return RD_STATUS_DIRECTORY_NOT_EMPTY;
|
||||||
|
@ -260,7 +260,7 @@ oss_set_format(RD_WAVEFORMATEX * pwfx)
|
|||||||
if ((pwfx->wBitsPerSample == 16) && (format != AFMT_S16_LE))
|
if ((pwfx->wBitsPerSample == 16) && (format != AFMT_S16_LE))
|
||||||
return False;
|
return False;
|
||||||
|
|
||||||
if ((pwfx->nChannels == 2) != !!stereo)
|
if ((pwfx->nChannels == 2) != ! !stereo)
|
||||||
return False;
|
return False;
|
||||||
|
|
||||||
if (pwfx->nSamplesPerSec != snd_rate)
|
if (pwfx->nSamplesPerSec != snd_rate)
|
||||||
|
@ -303,7 +303,7 @@ sun_set_format(RD_WAVEFORMATEX * pwfx)
|
|||||||
if ((pwfx->wBitsPerSample == 16) && (format != AUDIO_ENCODING_LINEAR))
|
if ((pwfx->wBitsPerSample == 16) && (format != AUDIO_ENCODING_LINEAR))
|
||||||
return False;
|
return False;
|
||||||
|
|
||||||
if ((pwfx->nChannels == 2) != !!stereo)
|
if ((pwfx->nChannels == 2) != ! !stereo)
|
||||||
return False;
|
return False;
|
||||||
|
|
||||||
if (pwfx->nSamplesPerSec != snd_rate)
|
if (pwfx->nSamplesPerSec != snd_rate)
|
||||||
|
@ -316,7 +316,7 @@ seamless_process_line(const char *line, void *data)
|
|||||||
if (*endptr)
|
if (*endptr)
|
||||||
return False;
|
return False;
|
||||||
|
|
||||||
ui_seamless_begin(!!(flags & SEAMLESSRDP_HELLO_HIDDEN));
|
ui_seamless_begin(! !(flags & SEAMLESSRDP_HELLO_HIDDEN));
|
||||||
}
|
}
|
||||||
else if (!strcmp("ACK", tok1))
|
else if (!strcmp("ACK", tok1))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user