An unbiased estimator is given for the drift of a Wiener process which is observed up to a stopping time. For first-passage times across a moving boundary the estimator can be calculated by a simple modification of standard computer programs for computing the first-passage density. Examples and interpretations of the estimator are given.