CVS: rdesktop rdpdr.c,1.28,1.29

Peter ?strand <[email protected]>
Newsgroups gmane.network.rdesktop.cvs
Message-ID <[email protected]>
Update of /cvsroot/rdesktop/rdesktop
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17027

Modified Files:
	rdpdr.c 
Log Message:
Implemented "dummy" IRP_MJ_LOCK_CONTROL, 
which always returns STATUS_SUCCESS. Should
make it possible to load/save files from MS Office.


Index: rdpdr.c
===================================================================
RCS file: /cvsroot/rdesktop/rdesktop/rdpdr.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** rdpdr.c	16 Apr 2004 11:28:34 -0000	1.28
--- rdpdr.c	16 Apr 2004 12:20:56 -0000	1.29
***************
*** 659,662 ****
--- 659,681 ----
  			break;
  
+ 
+ 		case IRP_MJ_LOCK_CONTROL:
+ 
+ 			if (g_rdpdr_device[device].device_type != DEVICE_TYPE_DISK)
+ 			{
+ 				status = STATUS_INVALID_HANDLE;
+ 				break;
+ 			}
+ 
+ 			in_uint32_le(s, info_level);
+ 
+ 			out.data = out.p = buffer;
+ 			out.size = sizeof(buffer);
+ 			/* FIXME: Perhaps consider actually *do*
+ 			   something here :-) */
+ 			status = STATUS_SUCCESS;
+ 			result = buffer_len = out.p - out.data;
+ 			break;
+ 
  		default:
  			unimpl("IRP major=0x%x minor=0x%x\n", major, minor);



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.