diff os2/dw.c @ 72:ab77a22a2a36

Added localization APIs as well as some miscellaneous bug fixes.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 15 Feb 2002 09:30:50 +0000
parents 5e7a4d93d8d7
children eeb98f881663
line wrap: on
line diff
--- a/os2/dw.c	Sun Feb 10 18:22:25 2002 +0000
+++ b/os2/dw.c	Fri Feb 15 09:30:50 2002 +0000
@@ -5424,7 +5424,7 @@
 		z++;
 		if(z > 5000000)
 			break;
-		DosSleep(1);
+		dw_main_sleep(1);
 	}
 
 	if(!blah)
@@ -5474,9 +5474,15 @@
 
 	temp = (PRECORDCORE)ci->data;
 
-	if(!WinSendMsg(handle, CM_QUERYCNRINFO, (MPARAM)&cnr, MPFROMSHORT(sizeof(CNRINFO))))
-		return;
-
+	z = 0;
+
+	while(WinSendMsg(handle, CM_QUERYCNRINFO, (MPARAM)&cnr, MPFROMSHORT(sizeof(CNRINFO))) == 0)
+	{
+		z++;
+		if(z > 5000000)
+			return;
+		dw_main_sleep(1);
+	}
 	currentcount = cnr.cRecords;
 
 	/* Figure out the offsets to the items in the struct */
@@ -5572,7 +5578,15 @@
 
 	temp = (PRECORDCORE)ci->data;
 
-	WinSendMsg(ci->handle, CM_QUERYCNRINFO, (MPARAM)&cnr, MPFROMSHORT(sizeof(CNRINFO)));
+	z = 0;
+
+	while(WinSendMsg(ci->handle, CM_QUERYCNRINFO, (MPARAM)&cnr, MPFROMSHORT(sizeof(CNRINFO))) == 0)
+	{
+		z++;
+		if(z > 5000000)
+			return;
+		dw_main_sleep(1);
+	}
 	currentcount = cnr.cRecords;
 
 	for(z=0;z<(row-currentcount);z++)
@@ -5613,7 +5627,7 @@
 		z++;
 		if(z > 5000000)
 			break;
-		DosSleep(1);
+		dw_main_sleep(1);
 	}
 
 	free(ci);
@@ -5634,7 +5648,7 @@
 		z++;
 		if(z > 5000000)
 			break;
-		DosSleep(1);
+		dw_main_sleep(1);
 	}
 }
 
@@ -5664,7 +5678,7 @@
 		z++;
 		if(z > 5000000)
 			break;
-		DosSleep(1);
+		dw_main_sleep(1);
 	}
 	
 	free(prc);