@@ -598,17 +598,23 @@ long DosOpenSft(char FAR * fname, unsigned flags, unsigned attrib)
598598/* /// Added for SHARE. - Ron Cemer */
599599 if (IsShareInstalled (TRUE))
600600 {
601+ DebugPrintf (("Share installed - open_check(%s)\n" , PriPathName ));
601602 if ((sftp -> sft_shroff =
602603 share_open_check (PriPathName , cu_psp ,
603604 flags & 0x03 , (flags >> 4 ) & 0x07 )) < 0 )
604605 return sftp -> sft_shroff ;
605606 }
607+ else
608+ {
609+ DebugPrintf (("Share NOT installed - open_check(%s)\n" , PriPathName ));
610+ }
606611
607612/* /// End of additions for SHARE. - Ron Cemer */
608613
609614 sftp -> sft_count ++ ;
610615 sftp -> sft_flags = PriPathName [0 ] - 'A' ;
611616 result = dos_open (PriPathName , flags , attrib , sft_idx );
617+ DebugPrintf (("dos_open(%s) returned %i\n" , PriPathName , result ));
612618 if (result < 0 )
613619 {
614620/* /// Added for SHARE *** CURLY BRACES ADDED ALSO!!! ***. - Ron Cemer */
@@ -714,7 +720,7 @@ COUNT DosCloseSft(int sft_idx, BOOL commitonly)
714720 */
715721 if (sftp -> sft_flags & SFT_FSHARED )
716722 {
717- /* printf( "closing SFT %d = %p\n",sft_idx,sftp); */
723+ /* DebugPrintf(( "closing SFT %d = %p\n",sft_idx,sftp) ); */
718724 return network_redirector_fp (commitonly ? REM_FLUSH : REM_CLOSE , sftp );
719725 }
720726
@@ -996,14 +1002,14 @@ COUNT DosChangeDir(BYTE FAR * s)
9961002 return DE_PATHNOTFND ;
9971003
9981004#if defined(CHDIR_DEBUG )
999- printf ( "Remote Chdir: n='%Fs' p='%Fs\n" , s , PriPathName );
1005+ DebugPrintf (( "Remote Chdir: n='%Fs' p='%Fs\n" , s , PriPathName ) );
10001006#endif
10011007 /* now get fs to change to new */
10021008 /* directory */
10031009 result = (result & IS_NETWORK ? network_redirector (REM_CHDIR ) :
10041010 dos_cd (PriPathName ));
10051011#if defined(CHDIR_DEBUG )
1006- printf ( "status = %04x, new_path='%Fs'\n" , result , cdsd -> cdsCurrentPath );
1012+ DebugPrintf (( "status = %04x, new_path='%Fs'\n" , result , cdsd -> cdsCurrentPath ) );
10071013#endif
10081014 if (result != SUCCESS )
10091015 return result ;
@@ -1061,7 +1067,7 @@ COUNT DosFindFirst(UCOUNT attr, BYTE FAR * name)
10611067 SAttr = (BYTE ) attr ;
10621068
10631069#if defined(FIND_DEBUG )
1064- printf ( "Remote Find: n='%Fs\n" , PriPathName );
1070+ DebugPrintf (( "Remote Find: n='%Fs\n" , PriPathName ) );
10651071#endif
10661072
10671073 dta = & sda_tmp_dm ;
@@ -1116,7 +1122,7 @@ COUNT DosFindNext(void)
11161122 * (12h, DE_NFILES)
11171123 */
11181124#if 0
1119- printf ( "findnext: %d\n" , dmp -> dm_drive );
1125+ DebugPrintf (( "findnext: %d\n" , dmp -> dm_drive ) );
11201126#endif
11211127 fmemcpy (& sda_tmp_dm , dmp , 21 );
11221128
@@ -1216,6 +1222,7 @@ COUNT DosSetFattr(BYTE FAR * name, UWORD attrp)
12161222 if (result & IS_DEVICE )
12171223 return DE_FILENOTFND ;
12181224
1225+ DebugPrintf (("DosSetFattr(%s)\n" , name ));
12191226 if (IsShareInstalled (TRUE))
12201227 {
12211228 /* SHARE closes the file if it is opened in
@@ -1427,6 +1434,7 @@ struct dhdr FAR *IsDevice(const char FAR * fname)
14271434BOOL IsShareInstalled (BOOL recheck )
14281435{
14291436 extern unsigned char ASMPASCAL share_check (void );
1437+ //DebugPrintf(("Share_check at %p and share_installed at %p\n", (void far *)&share_check, (void far *)&share_installed));
14301438 if (recheck == FALSE)
14311439 return share_installed ;
14321440 if (share_check () == 0xff )
0 commit comments